|
Hi,
I'm having a problem with starting a Java Swing app from a shell script on Mac OS X. I'm not very familiar with Macs.
I'm able to start the program from a terminal window by typing "java -classpath ". But if I put the same command in a shell script and run the script, I get a NoClassDefFoundError from the class loader. It complains about my main class. However, if I pass -h argument to the class in the script (again, this is a Swing app but it does take command-line arguments and prints some messages to stdout), it works, i.e. it prints the usage information, as it should, so somehow it is able to load the class.
Can anyone explain why this may be happening?
Thanks in advance. |