Results 1 to 9 of 9
Thread: How to create exe file in java
- 11-06-2008, 08:00 AM #1
Member
- Join Date
- Nov 2008
- Posts
- 10
- Rep Power
- 0
- 11-06-2008, 08:23 AM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
You don't. Java is not used to make native programs. Simply package it into a Jar.
Lesson: Packaging Programs in JAR Files (The Java™ Tutorials > Deployment)
- 11-06-2008, 08:35 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Same question we've discuss several times here in our community. Search the forum, you can find lots of comments on this.
- 11-06-2008, 08:36 AM #4
Member
- Join Date
- Nov 2008
- Posts
- 10
- Rep Power
- 0
I know some program created in java like "Limewire" but how they created an exe file for their program?
- 11-06-2008, 08:52 AM #5
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
If you insist then Google for "exe builder" for Java. You have already been told thought, that that is not the way to go. You lose Java's cross-platform ability (which is one of it's largest draws), and any native program created from it will suffer in comparison to a native program created in a language designed to do so. So, you wind up with the worst of both worlds.
Like I said, package it into a jarfile, using the tutorial I gave you. If you set up the manifest file right (which is described in the tutorial), and your system settings are correct, you can still execute it with a "double-click", which, I think, is your "real" concern.
- 11-06-2008, 09:20 AM #6
Member
- Join Date
- Nov 2008
- Posts
- 10
- Rep Power
- 0
Thank you very much for the info masijade I'm just curious how they do create their java file to exe. Now I know how to do, just I need a "Java Executable Wrapper". And I found this little app. "Launch4j"
Once again thank you very much. :D
Cheers!
- 11-06-2008, 01:45 PM #7
Senior Member
- Join Date
- Sep 2008
- Posts
- 135
- Rep Power
- 0
It's about time this "native executables are the only way to run software" myth was put to bed. If you knock up a quick shell script, you don't bother compiling it to a native binary. If you build a webapp you don't try and force it into an executable. Why people want to invest effort in making something appear to be something it isn't, for no actual benefit, is a mystery to me. A Java app runs inside a JVM, and there exist ways of packaging the software to exactly that end. Use them
</rant>
- 11-06-2008, 01:53 PM #8
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
- 11-06-2008, 04:17 PM #9
Senior Member
- Join Date
- Sep 2008
- Posts
- 135
- Rep Power
- 0
Exactly my point :p
There are always tools in existence to achieve these things, but that doesn't make it the right thing to do. For unfathomable reasons, people have this notion that unless something is bundled as a native executable, it's somehow not "proper" software
Similar Threads
-
How to create a file
By Alpha in forum New To JavaReplies: 7Last Post: 01-06-2012, 07:10 PM -
How to create file on server?
By thevoice in forum New To JavaReplies: 10Last Post: 08-12-2010, 06:06 PM -
can java.io.File create a list of all files and folders.
By MattStone in forum New To JavaReplies: 20Last Post: 12-17-2007, 03:20 PM -
How to create a xml file from oracle sql query
By boy22 in forum XMLReplies: 1Last Post: 07-24-2007, 12:15 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks