Skip to Main Content

Java Programming

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 the main class. Program will exit.

hkcoderJan 21 2009 — edited Jan 24 2009
Hi,

I've developed a small JFrame application using the NetBeans 6.0. After build the project ,accessing the jar file at this location it is executing perfectly, the same file is generating an error while i'm accessing it from other location that :
Could not find the main class. Program will exit.
I've also set-up the attribute named main-class under the Project Properties but still why it is saying the main class could not be found.

Kindly Help
Thanks
-Hitesh
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 21 2009
Added on Jan 21 2009
9 comments
2,279 views