Friday, October 17, 2008

some difference of java in -classpath between Windows and Linux

In windows, to run a class with a .jar file , you will need to write a command like this: java -classpath ./;lib/jdom.jar HelloWorld
but in Linux, there is some difference:
java -classpath ./:lib/jdom.jar HelloWorld

there is a Semicolon in Windows, but a Colon in Linux

No comments: