I’m complete Linux newbie, but still want to provide a simple way for Linux users to start my Java program.
Therefore I want to create a shellscript.
I can’t test my script so I’ll have to ask here if this is working correctly:
#!/bin/bash
java -cp "bin";"extres/junit.jar" data.ProgramOne
exit 0
Your mistake is in path delimiter. It is
;on Windows and:on Linux.Moreover you should not wrap each classpath fragment with
"". On unix you can escape spaces and other forbidden characters using\. So, I’d re-write the java execution line as:java -cp bin:extres/junit.jar data.ProgramOneThis will run when you are executing script from your app directory where you have subdirectory
binandextres.