Wednesday, November 5, 2008

Adding external jars under Netbeans for sunspot settings

Adding external jars in Netbeans under a project created for sonspots are a bit tricky.
Even if you are using a sunspot host application. 

To add a jar file you need to do only do one thing if you are using "blue", which you should anyway.

You need to go to the properties.build file and add extra jar files there.

I am in this example adding restlet jar files.  

user.classpath=/Applications/NetBeans.app/Contents/Resources/NetBeans/platform6/modules/ext/swing-layout-1.0.jar:/Applications/NetBeans.app/Contents/Resources/NetBeans/ide7/modules/ext/AbsoluteLayout.jar:/Users/evrenbingol/SPOTUI/lib/org.restlet.jar:/Users/evrenbingol/SPOTUI/lib/com.noelios.restlet.jar:/Users/evrenbingol/SPOTUI/lib/com.noelios.restlet.ext.servlet_2.4.jar



Last three jar files are external and the first one is netbeans set.

1 comments:

chandru said...

Hey,
I am unable to find the property.build file.
what i have is build.properties file and the content is

# Properties file for a Sun Spot Host Application
#
# build.properties
#
# This file is the default location for user properties that over-ride the
# defaults in ${sunspot.home}/default.properties. See that file for a full
# listing of the properties that may be set. This file is minimal and contains
# only those properties that a user would generally need to set right away.
#

#
# the host application's main class and arguments
# (for building as a host application - NOT for building
# a MIDlet to be deployed onto a SunSpot)
#
main.class=org.sunspotworld.demo.TelemetryFrame

basestation.not.required=true

host.java.version=1.5