wood burning stoves 2.0*
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
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
Author

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
author
Sheriff

Joined: Sep 28, 2004
Posts: 18991
    
  40

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".

Henry


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: http://jsmooth.sourceforge.net/


<a href="http://www.wi.hs-furtwangen.de" target="_blank" rel="nofollow">Business Information Technology - Hochschule Furtwangen University, Germany</a>
marc weber
Sheriff

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
sscce.org
Marilyn de Queiroz
Sheriff

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


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
 
subject: is it possible to convert .class to .exe