Results 1 to 3 of 3
- 07-18-2007, 07:47 PM #1
Member
- Join Date
- Jul 2007
- Posts
- 35
- Rep Power
- 0
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
- 07-19-2007, 04:58 PM #2
Senior Member
- Join Date
- Jul 2007
- Posts
- 130
- Rep Power
- 0
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 :p
- 09-22-2011, 09:48 PM #3
Member
- Join Date
- Sep 2011
- Posts
- 1
- Rep Power
- 0
Re: Error: Could Not Find Main Class. Program Will Exit
This will surely help.....
I recommend you download Blue J. its free and will let you JAR your file from within its interface without the need of command prompt. you just load up your classes into blue j and select "create JAR" or something similar (not using blue j right now) and you choose which main method (if you have more than one) you would like to execute primarily.
Similar Threads
-
Could not find the main class, program will exit.
By aryubi in forum New To JavaReplies: 39Last Post: 02-19-2010, 10:02 AM -
cannot find symbol class error
By po0oker in forum New To JavaReplies: 5Last Post: 10-31-2007, 02:52 PM -
ERROR: Exception in thread "main" java.lang.NoSuchMethodError: main
By barney in forum New To JavaReplies: 1Last Post: 08-07-2007, 07:10 AM -
problems to find the main method
By christina in forum EclipseReplies: 2Last Post: 08-06-2007, 07:51 PM -
How to exit the program..
By coco in forum New To JavaReplies: 1Last Post: 08-01-2007, 05:56 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks