2. nov. 2005

Set classpath the smart way

Original: http://mindprod.com/jgloss/classpath.html

Isn't it annoying you have to specify all the jar files needed to run a javaprogram?


Nomally you would make a:
  SET CLASSPATH=jar1.jar;jar2.jar;jar3.jar...


But in stead you can simply specify the directory where you have all your jar files:
  javac.exe -Djava.ext.dirs=usualextdir;anotherdir... 

and
  java.exe -Djava.ext.dirs=usualextdir;anotherdir...


See the original page for more tips.