Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Could not find main class. Program will exit.

843785Aug 19 2008 — edited Aug 21 2008
I am new to java so I am sure I am doing something wrong here. I recently developed an application and am creating the .jar file for it. When I double click it I receive the following message " Could not find main class. Program will exit.". When I run it with the "java -jar" command I receive the following message "Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes".

I have verified that the Main-Class: in the Manifest.MF is valid.

The application runs OK in Eclipse IDE.

Any suggestions? I know it is something that I should already know, but do not.

Any help would be appreciated.
Thx,
BAJH
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 18 2008
Added on Aug 19 2008
9 comments
1,383 views