How to create an exe for a Java application

Reply

Join Date: Aug 2005
Posts: 36
Reputation: aripaka is an unknown quantity at this point 
Solved Threads: 0
aripaka's Avatar
aripaka aripaka is offline Offline
Light Poster

How to create an exe for a Java application

 
0
  #1
Sep 1st, 2005
hi all,

Can we create an exe for a Java application so that we can run it directly by executing the exe?
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 763
Reputation: Phaelax is on a distinguished road 
Solved Threads: 38
Phaelax Phaelax is offline Offline
Master Poster

Re: How to create an exe for a Java application

 
0
  #2
Sep 1st, 2005
Java's executable files are .jar files instead of .exe. Different extension, but you can still double-click the file to run the program.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 216
Reputation: hooknc is an unknown quantity at this point 
Solved Threads: 8
hooknc hooknc is offline Offline
Posting Whiz in Training

Re: How to create an exe for a Java application

 
0
  #3
Sep 1st, 2005
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:
  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
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 274
Reputation: mmiikkee12 is an unknown quantity at this point 
Solved Threads: 5
mmiikkee12's Avatar
mmiikkee12 mmiikkee12 is offline Offline
Posting Whiz in Training

Re: How to create an exe for a Java application

 
0
  #4
Sep 1st, 2005
Try J2EXE...
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: How to create an exe for a Java application

 
0
  #5
Sep 1st, 2005
Executable jar files work perfectly.
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 274
Reputation: mmiikkee12 is an unknown quantity at this point 
Solved Threads: 5
mmiikkee12's Avatar
mmiikkee12 mmiikkee12 is offline Offline
Posting Whiz in Training

Re: How to create an exe for a Java application

 
0
  #6
Sep 3rd, 2005
But they're REALLY hard to make... stupid manifest files...
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: How to create an exe for a Java application

 
0
  #7
Sep 3rd, 2005
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.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 763
Reputation: Phaelax is on a distinguished road 
Solved Threads: 38
Phaelax Phaelax is offline Offline
Master Poster

Re: How to create an exe for a Java application

 
0
  #8
Sep 3rd, 2005
Most IDE's create the manifest for you even.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: How to create an exe for a Java application

 
0
  #9
Sep 4th, 2005
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.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 609
Reputation: freesoft_2000 is an unknown quantity at this point 
Solved Threads: 7
freesoft_2000 freesoft_2000 is offline Offline
Practically a Master Poster

Re: How to create an exe for a Java application

 
0
  #10
Sep 4th, 2005
Hi everyone,

See the below link on creating executable jar archives

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

Richard West
Microsoft uses "One World, One Web, One Program" as a slogan.
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond

Tell me what type of software do you like and what would you pay for it

http://www.daniweb.com/techtalkforums/thread19660.html
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC