File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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

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

muthukumaran mohan

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

Valentin Crettaz
Gold Digger

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:
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.
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform

[Blog] [Blogroll] [My Reviews] My Linked In
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
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.

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
I agree. Here's the link:
subject: how to convert java file in to exe. file ..........
It's not a secret anymore!