Ok I know this question has been asked many many many times before, but I\'ve googled it and looked at examples and looked at questions on SO for the past month, and I serio
Your problem is min separator you are using. Separator ;
is for windows. On Unix systems you should use :
instead:
java -classpath "bin:mysql-connector-java-5.1.19-bin.jar" MyProgram
See:
String pathSeparator = System.getProperty("path.separator");
I would highly suggest you try --jar or -jar. I can't remember which it is, but those should settle you. Also, if you have the dev tools from apple, they have a jar packager.
Use a ':' to separate your entries on Unix systems:
java -classpath "bin:mysql-connector-java-5.1.19-bin.jar" MyProgram
java -cp bin:mysql-connector-java-5.1.19-bin.jar MyProgram
Eclipse converts it automatically.
you did not set your main class in classpaht, try add ./
in -cp