This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
muthukumaran mohan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Marilyn de Queiroz
Sheriff
Posts: 9059
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic