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

2008年8月26日星期二

Add 3rd Party JAR Library to Sun SPOT Application

According to https://www.sunspotworld.com/forums/viewtopic.php?p=7666#7666

For a host app all you need to do is specify the third party jar files in your project's build.properties file:
Code:
user.classpath=/whatever/directory/<TheNameOfYourJAR>.jar

For a SPOT app to have the third party jar deployed to the SPOT you need to use the following:
Code:
utility.jars=/whatever/directory/<TheNameOfYourJAR>.jar

For a SPOT app, if you are using NetBeans, you also need to add the third party jar file to the compile classpath (i.e. <classpath mode="compile">) in the nbproject/project.xml file. If you have modified your project.xml file to use SPOT defined properties then you can add it by putting
Code:
user.classpath=${utility.jars}

in your build.properties file.

NOTE: issue about preverify JAR is discussed here as well...

没有评论: