[英]JAR file does not load class files from ext
I installed JDK 1.6 on my Linux system, the $JAVA _HOME directory is /usr/java/jdk1.6.0_07
. 我在我的Linux系统上安装了JDK 1.6,$ JAVA _HOME目录是
/usr/java/jdk1.6.0_07
。 I built the path on Eclipse to $JAVA_HOME. 我在Eclipse上构建了$ JAVA_HOME的路径。 It runs smoothly through Eclipse and loads all third party JAR files from
/usr/java/jdk1.6.0_07/jre/lib/ext/
, but when I export the JAR file and run it, it throws ClassNotFoundExecption
. 它在Eclipse中顺利运行并从
/usr/java/jdk1.6.0_07/jre/lib/ext/
加载所有第三方JAR文件,但是当我导出JAR文件并运行它时,它会抛出ClassNotFoundExecption
。
Why? 为什么?
java -version
on terminal where you run it to check. java -version
进行检查。 What does java -version
return? java -version
返回什么? Are you using the same JRE for execution? 您是否使用相同的JRE执行?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.