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下)环境下