To use External JAR library in Sun SPOT Host Application, you need to do 2 steps.
- Add it to Java Source Classpath. Right click the host application which you want to include external JAR in NetBeans. Select Properties at the bottom of popup menu. Select Java Source Classpath and Add JAR/Folder...
- Add classpath to build.properties. The build.properties file is located at the root of every Sun SPOT Host Application. Please use normal text editor to open it and add class path of target JAR to user.classpath.
Attention: You should use different seperator! Please use / instead of \.
The modified user.classpath should looks like this one below.
user.classpath=C:\Program Files\NetBeans 6.0.1\platform7\modules\ext\swing-layout-1.0.3.jar:C:\Documents and Settings\Administrator\.netbeans\6.0\modules\ext\AbsoluteLayout.jar:D:/TheJARFileYouWantToAdd.jar