`
gdpglc
  • 浏览: 87535 次
  • 性别: Icon_minigender_1
  • 来自: 长春
社区版块
存档分类
最新评论

Using java.ext.dirs to ease setting classpath(2009-03-02 15:41)

阅读更多
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

分享到:
评论

相关推荐

    jcuda实现的dbscan

    6. 然后javac -Djava.ext.dirs="JCuda-All-0.8.0-bin-linux-x86_64" CudaGdbscan.java和javac -Djava.ext.dirs="JCuda-All-0.8.0-bin-linux-x86_64" Test.java分别编译; 7. 最后运行java -Djava.ext.dirs="JCuda-...

    Javapath.bat

    用于自动配置java安装后的系统配置路径,安装完成java工具包JDE之后,直接运行本资源脚本,然后输入刚刚安装完成的JDE路径,即可自动配置Windows下环境变量所需要的所有信息。

    sunjce_provider-1.0.0.jar

    Solving the problem was a matter of putting the sunjce_provider.jar in one of the folders specified in the java.ext.dirs parameter. Hard to find, easy to solve. 把sunjce_provider.jar 放到JDKclasspath...

    kafka_2.9.2-0.8.2.1.tgz

    CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib source /etc/profile使环境变量立刻生效 安装kafka 解压 tar -xzvf kafka_2.8.0-0.8.1.tgz ;rm kafka_2.8.0-0.8.1.tgz; cd kafka_...

    9异常,系统属性,Math类.rar

     ●java.ext.dirs:JDK的安装目录;  ●os.name:操作系统名称;  ●user.name:用户登录名称;  ●os.version:操作系统版本;  ●path.separator:当前操作系统的路径分隔符;  ●user.dir:当前用户...

    linux-java-jar包启动脚本

    linux-java-jar包启动脚本

    myeclipse热部署jrebel6.5.0

    Drebel.dirs-------------热部署的项目 -Drebel.spring_plugin-----热部署spring相关jar -Drebel.struts2-plugin-----热部署struts2相关jar -Drebel.hibernate_plugin---热部署hibernate相关jar -Drebel.ibatis-...

    myeclipse 插件热部署 jrebel6.5

    Drebel.dirs-------------热部署的项目 -Drebel.spring_plugin-----热部署spring相关jar -Drebel.struts2-plugin-----热部署struts2相关jar -Drebel.hibernate_plugin---热部署hibernate相关jar -Drebel.ibatis-...

    wsdl2java工具

    set Java_Cmd=java -Djava.ext.dirs=%Axis_Lib% set Output_Path=.\source //输出目录 set Package= com.test.webservice.client %Java_Cmd% org.apache.axis.wsdl.WSDL2Java -o%Output_Path% -p%Package% ...

    tesseract-3.02.02-win32-lib-include-dirs(源文件).zip

    tesseract-3.02.02-win32-lib-include-dirs(SDK) tesseract-3.02.02-win32-lib-include-dirs(SDK) tesseract-3.02.02-win32-lib-include-dirs(SDK) tesseract-3.02.02-win32-lib-include-dirs(SDK)

    积分管理系统java源码-eladmin:根据原eladmin项目进行改造。整合ELK、ShardingSphere多数据源、多Redis、消

    -Djava.ext.dirs=lib #启动示例 nohup java --add-opens java.base/java.lang=ALL-UNNAMED -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 -Djava.ext.dirs=lib -jar eladmin-starter-...

    windows版wget命令

    --cut-dirs=NUMBER ignore NUMBER remote directory components. HTTP options: --http-user=USER set http user to USER. --http-passwd=PASS set http password to PASS. -C, --cache=on/off ...

    wget-1.11.4-1

    --cut-dirs=NUMBER ignore NUMBER remote directory components. HTTP options: --http-user=USER set http user to USER. --http-password=PASS set http password to PASS. --no-cache disallow ...

    ls命令替代品exa.zip

    r, --reverse: reverse sort order-R, --recurse: recurse into subdirectories-s, --sort=(field): field to sort by-S, --blocks: show number of file system blocks-t, --time: which timestamp to show for a ...

    windows版curl

    --cut-dirs=NUMBER ignore NUMBER remote directory components. HTTP options: --http-user=USER set http user to USER. --http-passwd=PASS set http password to PASS. -C, --cache=on/off ...

    xorg-x11-fonts-75dpi-7.5-9.el7.noarch.rpm

    离线安装包,亲测可用

    Java小程序接口上传demo

    1、解压文档后,"/tmp/模板文件.doc" 2、然后在jar包的当前路径的执行一下以下命令(前提安装了jdk1.8) 输入命令:java -Djava.ext.dirs=./lib -jar upLoadFileTestDir.jar

    tesseract-3.02.02-win32-lib-include-dirs.zip

    tesseract-3.02.02-win32-lib-include-dirs.zip win32 SDK

    tomcat-source-code:tomcat8.x原始码-tomcat source code

    -Djava.endorsed.dirs=catalina-home/endorsed -Djava.io.tmpdir=catalina-home/temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=home/conf/logging....

    selenium快速入门示例

    cd D:\selenium快速入门示例 D: set JAVA_HOME=E:\tools\java\jdk1.8.0_181x64 set PATH=%JAVA_HOME%\bin;%PATH% javac -encoding utf-8 -Djava.ext.dirs=....java -Djava.ext.dirs=. SogouTest1 pause

Global site tag (gtag.js) - Google Analytics