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 create exe file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to create exe file" Watch "How to create exe file" New topic

How to create exe file

Anil Bharadia

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

Joined: Sep 28, 2004
Posts: 20380

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


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

Joined: Mar 05, 2008
Posts: 3028
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

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

Joined: Dec 24, 2008
Posts: 28
If you really want it: - utility - overview
I agree. Here's the link:
subject: How to create exe file
It's not a secret anymore!