facebook

Making an executable jar file

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #225993 Reply

    I developed a small window application and I am trying to make an executable jar file. After making an export to a jar file when I try to run that file I get the following error. “Unable to load the main class”. I am not sure what I might be doing wrong. any suggestion. By the way this application was developed with Eclipse ans SWTDesigner Pro.

    #226021 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft dev, this isn’t related to MyEclipse.

    glurlay,
    You need to edit your MANIFEST.MF file, and add a section like this:

    
    Main-Class: com.whatever.somename.Main
    

    Where that is the FQN of the Main class, this is what will be run when you double click the JAR.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Making an executable jar file

You must be logged in to post in the forum log in