File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes is it possible to convert .class to .exe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "is it possible to convert .class to .exe" Watch "is it possible to convert .class to .exe" New topic

is it possible to convert .class to .exe

kotha vijaybabu
Ranch Hand

Joined: Jan 28, 2006
Posts: 77
hi ranchers
is it possible to convert .class to .exe???
if it is how? can anybody explain
Henry Wong

Joined: Sep 28, 2004
Posts: 20376

Caveat first... I really do not recommend this, as it breaks the platform independence of Java. You will basically convert a program that will run anywhere, to a program that will only run on Windows.

However, there are a few commerical packages, and open source projects that does this (including a GNU compiler, if I remember correctly). Just google for either "java compiler" or "java packager".


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Sanjaya Sugiarto
Ranch Hand

Joined: Mar 25, 2004
Posts: 229
Check this out:

<a href="" target="_blank" rel="nofollow">Business Information Technology - Hochschule Furtwangen University, Germany</a>
marc weber

Joined: Aug 31, 2004
Posts: 11343

Check this too: Java to exe.

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9058
An alternative might be an executable jar file.

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: is it possible to convert .class to .exe
It's not a secret anymore!