944,045 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 3413
  • Java RSS
Sep 1st, 2005
0

How to create an exe for a Java application

Expand Post »
hi all,

Can we create an exe for a Java application so that we can run it directly by executing the exe?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
aripaka is offline Offline
36 posts
since Aug 2005
Sep 1st, 2005
0

Re: How to create an exe for a Java application

Java's executable files are .jar files instead of .exe. Different extension, but you can still double-click the file to run the program.
Reputation Points: 92
Solved Threads: 51
Practically a Posting Shark
Phaelax is offline Offline
856 posts
since Mar 2004
Sep 1st, 2005
0

Re: How to create an exe for a Java application

There is no direct way to make a .exe for running a java file.

The way i prefer to make a clickable icon or link for starting a java application is through a .bat file.

here is an example:
Java Syntax (Toggle Plain Text)
  1. set cp = c:/java/jre/lib/rt.jar;
  2. set cp = cp;<other class path info...>
  3.  
  4. java -cp cp <then your class name>

That should be close enough for you to figure it out from there.

Regards,

Nate
Reputation Points: 11
Solved Threads: 8
Posting Whiz in Training
hooknc is offline Offline
216 posts
since Aug 2005
Sep 1st, 2005
0

Re: How to create an exe for a Java application

Try J2EXE...
Reputation Points: 17
Solved Threads: 5
Posting Whiz in Training
mmiikkee12 is offline Offline
274 posts
since Oct 2004
Sep 1st, 2005
0

Re: How to create an exe for a Java application

Executable jar files work perfectly.
Reputation Points: 113
Solved Threads: 19
Postaholic
server_crash is offline Offline
2,108 posts
since Jun 2004
Sep 3rd, 2005
0

Re: How to create an exe for a Java application

But they're REALLY hard to make... stupid manifest files...
Reputation Points: 17
Solved Threads: 5
Posting Whiz in Training
mmiikkee12 is offline Offline
274 posts
since Oct 2004
Sep 3rd, 2005
0

Re: How to create an exe for a Java application

They're in fact really easy to make...
Just read the instructions which are clear, all you need is a single line of text in your manifest file, how hard can that be?

If you're too dumb or lazy to create that, there's no hope for you in the industry and we're better off without you.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Sep 3rd, 2005
0

Re: How to create an exe for a Java application

Most IDE's create the manifest for you even.
Reputation Points: 92
Solved Threads: 51
Practically a Posting Shark
Phaelax is offline Offline
856 posts
since Mar 2004
Sep 4th, 2005
0

Re: How to create an exe for a Java application

yup, and so can ANT and other build tools. But of course you need to learn how to use them and if someone is too lazy or stupid to read the documentation for the jar command I don't expect them to read the documentation for ANT or an IDE either.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Sep 4th, 2005
0

Re: How to create an exe for a Java application

Hi everyone,

See the below link on creating executable jar archives

http://www.wizardsolutionsusa.com/fo...read.php?t=100

Richard West
Reputation Points: 25
Solved Threads: 10
Practically a Master Poster
freesoft_2000 is offline Offline
623 posts
since Jun 2004

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.
Message:
Previous Thread in Java Forum Timeline: Action Event help
Next Thread in Java Forum Timeline: how to copy a file from one machine to another using beans?





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


Follow us on Twitter


© 2011 DaniWeb® LLC