On Jun 23, 2005, at 6:09 AM, Andrew Kachalo wrote:
I have one jar file which successfully runs on both Win and Mac JVM
1.4, but on 1.5 it shows "Could no load main class".
Where should I find the mistake?
The very first thing I do is do a jar -tf foo.jar, then jar -xvf
foo.jar into a test directory and look at the manifest to see what
main class is listed. This is my equivalent of making sure it is
plugged in. That it runs on 1.4 makes it likely to be a fine jar,
but it is worth a quick check that you are running what you think you
Then, look at your run command to see what tool you are calling, and
how you are calling it. Do a 'java -version' the same way you are
launching it to make sure you are getting the 1.5 vm, and do a 'which
java' to once again check what your path looks like.
I might then do a java -verbose to watch the classes load, as that
would tell you a lot.
Armed with this info, post your exact command line and the verbose
output, and see if anyone spots a problem.
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden