如果找到了对您有用的资料,烦请点击右手边的Google广告支持我继续共享知识,谢谢! http://dengpeng.spaces.live.com/

2008年4月13日星期日

Add External Library to SunSPOT Host Application

To use External JAR library in Sun SPOT Host Application, you need to do 2 steps.

  1. 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...
  2. 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

没有评论: