| | |
Jar File Problem, Could not find the main class....
Thread Solved |
•
•
Join Date: Aug 2008
Posts: 1,160
Reputation:
Solved Threads: 137
you are trying to run the jar file
do you have this in there?
i'm assuming you don't, but for a jar file to be run, just like any other code, it needs to start with a main method
do you have this in there?
Java Syntax (Toggle Plain Text)
public static void main(String [] args)
i'm assuming you don't, but for a jar file to be run, just like any other code, it needs to start with a main method
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
Executable jar files need a
More info here: http://java.sun.com/docs/books/tutor...ar/appman.html
Main-Class: entry in the manifest file.More info here: http://java.sun.com/docs/books/tutor...ar/appman.html
Last edited by Ezzaral; Apr 8th, 2009 at 2:00 pm.
•
•
Join Date: Sep 2008
Posts: 1,566
Reputation:
Solved Threads: 196
The manifest file specifies where the main class is, that way the program can run as you want it to. And netbeans generates the manifest file for you, so you don't see the details of it, but I'm sure that it happens. The manifest file can also do other things, I think, but I'm not sure what they are. See here for more info:
http://java.sun.com/docs/books/tutor...ar/appman.html
http://java.sun.com/docs/books/tutor...ar/appman.html
![]() |
Similar Threads
- Help with automatic update problem and more (Viruses, Spyware and other Nasties)
- Making Jar Files (Java)
- problem in tomcat (JSP)
- Hijack Log, What To Delete? Please Help (Viruses, Spyware and other Nasties)
- trojan.cachecachekit (Viruses, Spyware and other Nasties)
- error while running jar file (Java)
- Custom CharsetProvider doesn't get loaded in signed applet (Java)
- Hey crunchie, RE: LOP problem (Viruses, Spyware and other Nasties)
- AdwarePunisher virus? Thing ... I dunno!! Please help!! (Viruses, Spyware and other Nasties)
- Frustrating hjt log...this HAS to be simple (Viruses, Spyware and other Nasties)
Other Threads in the Java Forum
- Previous Thread: null pointer exception
- Next Thread: Socket Programming
| Thread Tools | Search this Thread |
2dgraphics account android api apple applet application arguments array arrays automation banking binary binarytree bluetooth chat chatprogramusingobjects class client code color component count database derby design eclipse eclipsedevelopment encryption error fractal game givemetehcodez graphics gridlayout gui homework html ide if_statement image integer interface j2me java javadesktopapplications javaprojects jlabel jni jpanel jtextfield julia keyword linux list macintosh map method methods midlethttpconnection mobile netbeans newbie nullpointerexception object open-source os problem producer program programming project projectideas property read recursion reference replaysolutions ria scanner search server set size sms sort sourcelabs splash sql sqlite stop string swing threads transforms tree ui unicode validation windows






