RSS Forums RSS

can we create .exe file using java

Please support our Java advertiser: Programming Forums
Reply
Posts: 8
Reputation: sasidharnet is an unknown quantity at this point 
Solved Threads: 0
sasidharnet sasidharnet is offline Offline
Newbie Poster

can we create .exe file using java

  #1  
Oct 29th, 2007
If it is possible please guide me.
AddThis Social Bookmark Button
Reply With Quote  
Posts: 1,957
Reputation: masijade is a splendid one to behold masijade is a splendid one to behold masijade is a splendid one to behold masijade is a splendid one to behold masijade is a splendid one to behold masijade is a splendid one to behold masijade is a splendid one to behold 
Solved Threads: 198
masijade's Avatar
masijade masijade is offline Offline
Posting Virtuoso

Re: can we create .exe file using java

  #2  
Oct 29th, 2007
Google for a third party program for doing this, but it is not recommended. Why take a language meant for creating cross-platform software, and take that exact advantage away by turing the product into a native executable which can then only be run on one platform?
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote  
Posts: 137
Reputation: PoovenM is on a distinguished road 
Solved Threads: 11
PoovenM PoovenM is offline Offline
Junior Poster

Re: can we create .exe file using java

  #3  
Oct 29th, 2007
I agree with Masijade, one would tend to not create an 'exe' file from a Java program. Indeed there should exist a byte code to exe compiler, though I wonder how efficient/valid one would be; Java is a growing language and some of the specifications of Java aren't easily portable to C++ (which is what a 'class' to 'exe' compiler would likely attempt to do).

What usually happens is that we create a 'jar' file. This file is recognized by Java and executes much like an 'exe' file; the only catch is that you must have Java installed, which of course you do. The easiest way is to make a 'jar' file is to use NetBeans
Reply With Quote  
Posts: 4,111
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 458
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: can we create .exe file using java

  #4  
Oct 29th, 2007
If you look as far as page 2 of the forum, this is answered in two different threads. Please take some time to find answers on your own before you ask others to hand them to you.
Reply With Quote  
Posts: 10
Reputation: NetByte is an unknown quantity at this point 
Solved Threads: 0
NetByte's Avatar
NetByte NetByte is offline Offline
Newbie Poster

Re: can we create .exe file using java

  #5  
Nov 6th, 2007
Originally Posted by sasidharnet View Post
If it is possible please guide me.

Yeah its possible, kills the cross platform concept of java though, but whether for proof of concept or you cant live without .exe in your windows, or for whatever reasons it maybe, yes its do-able...

well, you could use Microsoft J# .NET, but then you'd be needing the .NET Framework installed, rather than having and using Java installed.


or you can use software like "JarToExe Convert Wizard" @ http://www.regexlab.com/en/jar2exe/

or JexePack a command line tool allowing you to package your Java application (class files), optionally along with its resources (like GIF/JPG/TXT/etc), into a single compressed 32-bit Windows EXE, which runs using Sun's Java Runtime Environment. @ http://www.duckware.com/jexepack/index.html

or u can just use google look for more software, and say ... put a search like "java to exe" or something like that.


<sigh!*whenever this subject comes out, it always reminds me of Python, Py2exe*>

" Technology is dominated by two types of people: those who understand what they do not manage, and those who manage what they do not understand. " ---- Putt's Law.
Reply With Quote  
Posts: 15
Reputation: nuwan243 is an unknown quantity at this point 
Solved Threads: 0
nuwan243 nuwan243 is offline Offline
Newbie Poster

Re: can we create .exe file using java

  #6  
Nov 7th, 2007
Hey i also got that question some tym before..i dont know the exact reason y java didnt allow to create .exe files.....

but java can create .class files.
also u can create .jar files..
jar files can be executed in java virtual machine enviorenment.there are some software tools support to create exe files in the internet.but they also not efficient...

but its not a prob when u created a .jar file....

bye....
Reply With Quote  
Posts: 175
Reputation: Paul.Esson is an unknown quantity at this point 
Solved Threads: 8
Paul.Esson's Avatar
Paul.Esson Paul.Esson is offline Offline
Junior Poster

Re: can we create .exe file using java

  #7  
Nov 7th, 2007
GCJ can be located at http://gcc.gnu.org/java/, Is able to compile java into bytecode or a native executable ( don't know if this works on win32 tho ).

Launch4J is another GPL option http://launch4j.sourceforge.net/, a small JVM that ships with your software.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Views: 2645 | Replies: 6 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:14 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC