exe creation and its usage without jdk/jre

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

Join Date: Jun 2007
Posts: 8
Reputation: deeptiarora is an unknown quantity at this point 
Solved Threads: 0
deeptiarora deeptiarora is offline Offline
Newbie Poster

exe creation and its usage without jdk/jre

 
0
  #1
Oct 24th, 2007
Hi

can we create an exe file in java and used it anywhere we want without using any jdk/jre

deepti
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,483
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: 516
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: exe creation and its usage without jdk/jre

 
0
  #2
Oct 24th, 2007
There are apps that will do that, but why do you feel that you need to? You give up portability and tie your program to a single native compiler, which may be slower than newer JIT compilers. If you think you need an exe, know specifically why your app absolutely needs to be an exe.
http://www.yoda.arachsys.com/java/javaexe.html
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: exe creation and its usage without jdk/jre

 
0
  #3
Oct 24th, 2007
The answer to this is no.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 706
Reputation: stultuske is a jewel in the rough stultuske is a jewel in the rough stultuske is a jewel in the rough 
Solved Threads: 84
stultuske's Avatar
stultuske stultuske is offline Offline
Master Poster

Re: exe creation and its usage without jdk/jre

 
0
  #4
Oct 25th, 2007
No.

first part, yes, you can create .exe files from java progs, but no, an exe can not be used everywhere you want.

by creating an exe file, the program will no longer be cross-platform. you can, however, create .jar files that (basically) do the same as .exe files and that can be used on different platforms
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 8
Reputation: deeptiarora is an unknown quantity at this point 
Solved Threads: 0
deeptiarora deeptiarora is offline Offline
Newbie Poster

Re: exe creation and its usage without jdk/jre

 
0
  #5
Oct 25th, 2007
So if i create the .jar file can it used without installing the jdk/jre on any other machine..
Pls suggest will the jar file be used without jdk/jre on any other machine.
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,416
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: 257
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: exe creation and its usage without jdk/jre

 
0
  #6
Oct 25th, 2007
No, it is expected that the "client" (or to be installed on) machine already has a jdk/jre (which it probably does, just maybe not the right version).
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,483
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: 516
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: exe creation and its usage without jdk/jre

 
0
  #7
Oct 25th, 2007
Originally Posted by deeptiarora View Post
So if i create the .jar file can it used without installing the jdk/jre on any other machine..
Pls suggest will the jar file be used without jdk/jre on any other machine.
No, jars cannot run without a JVM. You can use an installer to faciliate the installation of Java as part of installing your app if you wish. A good free (open source) one is IzPack http://izpack.org/start
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



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

©2003 - 2009 DaniWeb® LLC