This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes How to create exe file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to create exe file" Watch "How to create exe file" New topic
Author

How to create exe file

Anil Bharadia
Greenhorn

Joined: Mar 12, 2009
Posts: 15

Hello friends, i want to create .exe file of my project because jar file can be decompiled easily.
How can i Create .exe file from .class or .jar file ?


Preparing SCJP 1.6
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18747
    
  40


First of all, not all Java applications can be compiled to an exe -- but if you still want to do it, then google for "Java AOT".

Henry


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

Joined: Mar 05, 2008
Posts: 3011
    
  10
Considering the reason Anil wants to do this, I think he might be better off forgetting about exe's and instead googling "java obfuscator". Ultimately this only makes it more difficult to reverse engineer, not impossible - but fundamentally, that's true of any software that you release to the customer's own machine.
Nishant Arora
Greenhorn

Joined: Apr 21, 2009
Posts: 16
Try for JNLP technology of java.
Dmitry Mamonov
Greenhorn

Joined: Dec 24, 2008
Posts: 28
If you really want it:

http://launch4j.sourceforge.net/ - utility
http://www.javalobby.org/articles/java2exe/ - overview
 
 
subject: How to create exe file