Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » can't run jar file (exporting jar files)
can't run jar file [message #907325] Mon, 03 September 2012 15:13 Go to previous message
karl neumann is currently offline karl neumann
Messages: 2
Registered: August 2012
Junior Member
After having developed my first java applet which runs great in eclipse, I exported the project to a jar file. When I try to run the jar file from a command prompt I get: "no main manifest attribute, in MyClass.jar". I added the following line to the MANIFEST.MF file: Main-Class:org.eclipse.jdt.MyClass . I still get the same message when trying to run the jar file. I am not sure about the org.eclipse.jdt part. It's a guess. What am I doing wrong? Another observation, the MyClass.java source file does not have a main() or init() method. I don't know if that is relevant or not. I am at wits end trying to figure this out. Please help!
 
Read Message
Read Message
Previous Topic:Eclipse Juno WAS 6.1 server adapter
Next Topic:How to check out a specific version of Eclipse's built in plugin
Goto Forum:
  


Current Time: Wed May 22 18:41:07 EDT 2013

Powered by FUDForum. Page generated in 0.01749 seconds