aspose file tools
The moose likes Java in General and the fly likes How to create exe in java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "How to create exe in java" Watch "How to create exe in java" New topic
Author

How to create exe in java

Arun Maalik
Ranch Hand

Joined: Oct 25, 2005
Posts: 216
Dear ranchar how can we create an exe file of java swing. I am creating the jar file by the following command as

jar cf first.jar c:\first.class
then from the above command it is creating a jar file but when i am sending the jar file to the desktop and executing that there is error as like below

Failed to load manifest attribute from
c:\first.class


why this error

is it mandatory to create a manifest file before craeting the jar file
and if yes then what i will eneter in manifest file at

java-Bean : true or false//because i am not creating a bean

Regard
Arun
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6588
    
    1

Have a look at this...
http://java.sun.com/docs/books/tutorial/deployment/jar/

The manifest is required to tell the JVM, where the main class is and where the libraries for the application reside.

You should consider changing the title to this topic. I though you wanted to change the .jar to a .exe when I read the title.


SCJP 6 articles - SCJP 5/6 mock exams - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to create exe in java
 
Similar Threads
Manifest - JAR file - Exception
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Layout
Manifest/.jar Trouble
Request Resource not available.
java beans..please help....