`
ilovejsj
  • 浏览: 203242 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

java -Djava.ext.dirs={lib}

    博客分类:
  • java
阅读更多
If U are in a hurry to compile code and there is a big list of Jar files to include in the classpath, there U don't have to struggle to include the names of all the jar's in the classpath.

There is a neat trick - use the "java.ext.dirs" JVM param to point to the directory containing the jar files.

java -Djava.ext.dirs=c:\java\axis-1_1\lib -classpath classes MyJavaClass

或者
设置环境变量
变量名lib
变量值c:\java\axis-1_1\lib
java -Djava.ext.dirs=%lib% -classpath classes MyJavaClass
分享到:
评论
1 楼 hello4j 2012-06-01  
java -Djava.ext.dirs=%lib% -classpath classes MyJavaClass

能把你的环境变量说一下吗?

相关推荐

Global site tag (gtag.js) - Google Analytics