Reputation: 323
I created a jar file and want to run it on linux machine. In win32 machine I'm using: java -classpath myclass.jar;log4j-1.2.16.jar;mysql-connector-java-5.0.8-bin.jar;. com.name.myClass.MyClass However, on linux its doesn't work? Any ideas how to do it?
Upvotes: 2
Views: 359
Reputation: 10994
Use : instead of ; to separate items in your classpath:
-classpath myclass.jar:log4j-1.2.16.jar:mysql-connector-java-5.0.8-bin.jar:.
Upvotes: 7