Java: "Could not find the main class. Program will exit"

Posted by AJ on Stack Overflow See other posts from Stack Overflow or by AJ
Published on 2008-09-23T12:28:54Z Indexed on 2010/05/27 9:51 UTC
Read the original article Hit count: 409

Filed under:
|
|
|

I'm trying to run SQuirreL SQL.
I've downloaded it and installed it, but when I try to run it I get this error message:

Java Virtual Machine Launcher.
Could not find the main class.
Program will exit.

I get the gist of this, but I have not idea how to fix it. Any help?

more info:

  • I'm on Windows XP pro.
  • I have java 1.6 installed, and other apps are running OK.
  • The install ran OK.
  • I believe I've followed the installation instructions correctly.
  • To run it, I'm invoking the squirrel-sql.bat file.

Update

This question: http://stackoverflow.com/questions/1417328/could-not-find-the-main-class gives some background on this error from the point of view of a java developer.

© Stack Overflow or respective owner

Related posts about java

Related posts about error