943,764 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 6719
  • Java RSS
You are currently viewing page 1 of this multi-page discussion thread
Oct 29th, 2007
0

can we create .exe file using java

Expand Post »
If it is possible please guide me.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sasidharnet is offline Offline
8 posts
since Aug 2007
Oct 29th, 2007
3

Re: can we create .exe file using java

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?
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006
Oct 29th, 2007
1

Re: can we create .exe file using java

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
Reputation Points: 56
Solved Threads: 11
Junior Poster
PoovenM is offline Offline
147 posts
since Aug 2006
Oct 29th, 2007
0

Re: can we create .exe file using java

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.
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 838
Posting Genius
Ezzaral is offline Offline
6,761 posts
since May 2007
Nov 6th, 2007
0

Re: can we create .exe file using java

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*>

Reputation Points: 44
Solved Threads: 1
Newbie Poster
NetByte is offline Offline
11 posts
since Feb 2006
Nov 7th, 2007
-1

Re: can we create .exe file using java

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....
Reputation Points: 8
Solved Threads: 0
Newbie Poster
nuwan243 is offline Offline
15 posts
since Dec 2006
Nov 7th, 2007
0

Re: can we create .exe file using java

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.
Reputation Points: 21
Solved Threads: 10
Junior Poster
Paul.Esson is offline Offline
181 posts
since Feb 2005
Aug 5th, 2009
0

Re: can we create .exe file using java

i am java fresher a have good logic skill still i want to improve any guidence
Reputation Points: 10
Solved Threads: 0
Newbie Poster
manju.fresher is offline Offline
5 posts
since Aug 2009
Aug 5th, 2009
1

Re: can we create .exe file using java

i am java fresher a have good logic skill still i want to improve any guidence
This post, in this thread, is not, exactly, an endorsement of your claim of having "good logic skill".
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006
Aug 11th, 2009
0

Re: can we create .exe file using java

Click to Expand / Collapse  Quote originally posted by masijade ...
This post, in this thread, is not, exactly, an endorsement of your claim of having "good logic skill".
lol
Reputation Points: 10
Solved Threads: 0
Newbie Poster
anglok is offline Offline
3 posts
since Aug 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
This thread is currently closed and is not accepting any new replies.
Previous Thread in Java Forum Timeline: Class design question
Next Thread in Java Forum Timeline: Code not getting executed..





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC