Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-18-2007, 08:47 PM
Member
 
Join Date: Jul 2007
Posts: 35
silvia is on a distinguished road
Error: Could Not Find Main Class. Program Will Exit
A Friend Of Mine Made A .jar File
But Hes Not in Contact With Me Since Long Time. I Edit His .jar File Using Winzip unzippin it n again packing it ....
But After Editing That File i Cant Run It.

this error comes

Could Not Find Main Class. Program Will Exit

have he done some type of security ? that no1 can edit it ?
im so confused because even if i dont change anything in those .class file just save it .. the .jar Gives That error
Thanks
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-19-2007, 05:58 PM
Senior Member
 
Join Date: Jul 2007
Posts: 130
cruxblack will become famous soon enough
i presume when u said u run da jar file meaning u double click da jar file n it gives da "Could Not Find Main Class" message?

have u made the manifest file (.mf) and packed it together inside da jar with the rest of ur .class files?

Da manifest file are used to tell the computer what .class should be used when u click da .jar file, .jar dun really work like .exe files, maybe thats da problem
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Could not find the main class, program will exit. aryubi New To Java 13 09-30-2008 12:11 AM
cannot find symbol class error po0oker New To Java 5 10-31-2007 03:52 PM
ERROR: Exception in thread "main" java.lang.NoSuchMethodError: main barney New To Java 1 08-07-2007 08:10 AM
problems to find the main method christina Eclipse 2 08-06-2007 08:51 PM
How to exit the program.. coco New To Java 1 08-01-2007 06:56 PM


All times are GMT +3. The time now is 09:42 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org