`
weigang.gao
  • 浏览: 470251 次
  • 性别: Icon_minigender_1
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论

java -Djava.ext.dirs={lib}

    博客分类:
  • java
阅读更多

     java-Djava.ext.dirs = (lib)

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 

Or set the environment variable variable name lib 
Variable c: \ java \ axis-1_1 \ lib 

java-Djava.ext.dirs =% lib%-classpath classes MyJavaClass   

如果你急于编译代码,有一大串的Jar文件包含在类路径中,你不必要努力把所有的jar名称都包含到classpath中。有一个窍门——使用“java.ext。

                   -D set a system property(设置系统属性)  

                   dirs”JVM参数指向包含jar文件的目录。

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

 

 set Java_Cmd=java -Djava.ext.dirs=%Axis_Lib% 说明:执行java命令在java.ext.dirs=%Axis_Lib%(设置这些jar包在classpath下)环境下

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics