aspose file tools*
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
Author

compiler that generates genuine executables?

Howie Woo
Greenhorn

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.
Thanks,
Howie
Cindy Glass
"The Hood"
Sheriff

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
Sheriff

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: http://aspose.com/file-tools
 
subject: compiler that generates genuine executables?
 
Similar Threads
jvm and jre diffrence
java -version
JDK and JRE
Java in JDK\bin vs. Java in JRE\bin
What is difference between JDK, JRE and JVM?