Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating a n application from netbeans 4.1 IDE

 
David Dunmore
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a Java app written in 2000 which I've imported as a new project into the Netbeans IDE (It consists of several .java files). I can build and run it within the IDE OK, I get a .jar file in the dist sudirectory OK, but when I try to run the JAR file Outside the IDE, I get the following message from the JVM
'Failed to load the Main-Class manifest from C:\....\Myapp.jar'

When I set up the project, I set the Main class as Myapp.

I'm obviously mising something here...but what?
 
David Dunmore
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found the solution! The IDE was not building the Manifest file correctky, when I edited it manually to add the Main_Class: Myapp and rebuilt the project I can run the App as a free standing application.

I hope this is of use to other newbies.

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David,
Thanks for posting the solution!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic