aspose file tools*
The moose likes Java in General and the fly likes how to convert java file in to exe. file .......... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to convert java file in to exe. file .........." Watch "how to convert java file in to exe. file .........." New topic
Author

how to convert java file in to exe. file ..........

muthukumaran mohan
Greenhorn

Joined: Oct 09, 2001
Posts: 7
Dear All,
In Visual Basic we can convert the program into exe file. In the same way is there any option in java to make the object code into executable code (for eg. xxx.class to xxx.exe).
One more query, How to run an applet in java from the task bar using an icon. During execution of the applet the command prompt should not be visible (we are using appletviewer tool)
Thanx in advance
muthukumaran

Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
There are two different solutions to that problem (or more that I don't know about):
the first one is the tool provided at the following link:
http://www.duckware.com/java2exe.html
The generated executable works fine !
The drawback is that the tool is not free but you can try it !
The second solution is to use MS Java SDK which provides a way to generate an executable from Java classes. But I wouldn't use it since MS is not maintaining their Java SDK anymore.
So it's up to you to figure out which solution you like, or maybe someone else will have another (better) solution to that problem.
HIH
------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9047
    
  10
If you convert the program to an executable, it will no longer be portable. It will only be executable on the platform (Windows, unix, etc) you compile it to.

JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
wood burning stoves
 
subject: how to convert java file in to exe. file ..........