How to create .exe file of the java program you create?

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Dec 2007
Posts: 44
Reputation: arunpawar is an unknown quantity at this point 
Solved Threads: 0
arunpawar arunpawar is offline Offline
Light Poster

How to create .exe file of the java program you create?

 
0
  #1
Dec 31st, 2007
This sounds absurd to some developers here cause you'll say just create jar file and distributre to usr but sometimes there is not possiblity of having runtime environment in windows computers.So if we can bundle the enviroment and the setup together then packing into exe and then distribute like most of commercial java application sounds better.But the problem is how to do that?

Ok creating exe will increase the size but that doesn't matter,if there is any freeware tool to accomplish just that?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,242
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 491
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: How to create .exe file of the java program you create?

 
1
  #2
Dec 31st, 2007
Read this, it holds some interesting info
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 44
Reputation: arunpawar is an unknown quantity at this point 
Solved Threads: 0
arunpawar arunpawar is offline Offline
Light Poster

Re: How to create .exe file of the java program you create?

 
0
  #3
Dec 31st, 2007
Thnaks but this site says i can't i should'nt.and it is redirecting me to some commercial apps.

Then how mozilla creates it for firefox? EXE including the JRE? or tmozilla writes it in native for each platform.
Last edited by arunpawar; Dec 31st, 2007 at 11:24 am.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,242
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 491
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: How to create .exe file of the java program you create?

 
0
  #4
Dec 31st, 2007
If you read more then first 5 lines you will find out more
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,505
Reputation: Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future 
Solved Threads: 521
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: How to create .exe file of the java program you create?

 
0
  #5
Dec 31st, 2007
Use something like IzPack (http://izpack.org/) to create an installer can install the JRE if necessary.

There is just NO valid reason to think you absolutely have to create an exe for a Java app. You are much better off with an executable jar file.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 44
Reputation: arunpawar is an unknown quantity at this point 
Solved Threads: 0
arunpawar arunpawar is offline Offline
Light Poster

Re: How to create .exe file of the java program you create?

 
0
  #6
Jan 3rd, 2008
Executable Jar file can be good but what if want to bundle jar file and runtime environment together.Also Want to check if there is any JRE available before installing it.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,242
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 491
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: How to create .exe file of the java program you create?

 
0
  #7
Jan 3rd, 2008
Originally Posted by arunpawar View Post
Executable Jar file can be good but what if want to bundle jar file and runtime environment together.Also Want to check if there is any JRE available before installing it.
Is this a question or statement?
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,461
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 263
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: How to create .exe file of the java program you create?

 
0
  #8
Jan 3rd, 2008
Once again, you are not reading the articles completely.
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 Quick reply to this message  
Join Date: May 2007
Posts: 4,505
Reputation: Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future 
Solved Threads: 521
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: How to create .exe file of the java program you create?

 
0
  #9
Jan 3rd, 2008
And I already told you to use IzPack or something like it if you need to create an installer - which will do exactly what you are asking for.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 44
Reputation: arunpawar is an unknown quantity at this point 
Solved Threads: 0
arunpawar arunpawar is offline Offline
Light Poster

Re: How to create .exe file of the java program you create?

 
-1
  #10
Jan 5th, 2008
You guys are not going ahead of that post above.You think there is no way to deal with it.

I have seen many commercial application that use exe for their product.So how to do that?
No matter is recommended or somehting.There is alwasy another way.
Reply With Quote Quick reply to this message  
Reply

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



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC