首先感謝各位大大熱心回答,啟發了我如何搜尋。以下是在stackoverflow中搜尋的答案,順利解決了我的問題。 If you want to make a certain set of JAR files (or .class files) available to every Java application on the machine, then your best bet is to add those files to /Library/Java/Extensions.Java
Or, if you want to do it for every Java application, but only when your Mac OS X account runs them, then use ~/Library/Java/Extensions instead.
首先感謝各位大大熱心回答,啟發了我如何搜尋。以下是在stackoverflow中搜尋的答案,順利解決了我的問題。
If you want to make a certain set of JAR files (or .class files) available to every Java application on the machine, then your best bet is to add those files to /Library/Java/Extensions.Java
Or, if you want to do it for every Java application, but only when your Mac OS X account runs them, then use ~/Library/Java/Extensions instead.
CLASSPATH=.;%JAVA_HOME%lib;%JAVA_HOME%libtools.jar
设置
CLASSPATH
環境變數%JAVA_HOME%lib/xxx.jar
CLASSPATH=$CLASSPATH:abc.jar所在目錄; java ...