| | |
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,563
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 |
911 actionlistener addressbook android api append applet application array arrays automation binary block bluetooth character chat class client code component consumer csv database desktop developmenthelp eclipse error fractal ftp game gameprogramming givemetehcodez graphics gui html ide image integer j2me j2seprojects japplet java javaarraylist javac javaee javaprojects jni jpanel julia lego linked linux list loops mac map method methods mobile netbeans newbie number objects online oriented panel printf problem program programming project projects properties recursion replaydirector reporting researchinmotion rotatetext rsa scanner se server set singleton sms sort sql string swing test textfields threads time title tree tutorial-sample ubuntu update windows working






