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 compiler that generates genuine executables? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "compiler that generates genuine executables?" Watch "compiler that generates genuine executables?" New topic

compiler that generates genuine executables?

Howie Woo

Joined: Jan 26, 2002
Posts: 26
Hi, all:
Is there a compiler that generates genuine executables native to the operating system (e.g. win32 exe files that do not require a JRE)? Is there a free one? I found some compilers but they actually require a JRE, that, to me, really defeats the purpose. I want to create some applications that will run without the installation of the JRE so I can distribute them to any user.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
The PURPOSE of using Java is to make things platform independant. As soon as you make an exe out of your code you destroy the platform independancy of your code. So why even use Java? Code in c++ and compile it.
You will need to make a different exe for Windows, unix, MACs etc. This creates a problem, especially if you plan to make this available from a Web Page where you do not have a CLUE has to what operating system the user has.
If you INSIST on doing this thing, then do a search on this forum for .exe and compile and you will find lots of conversations about this, some of which mention products that can be used.

"JavaRanch, where the deer and the Certified play" - David O'Meara
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
You may want to consider making an executable JAR file.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: compiler that generates genuine executables?
jQuery in Action, 3rd edition