944,156 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 2441
  • Java RSS
Oct 24th, 2007
0

exe creation and its usage without jdk/jre

Expand Post »
Hi

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

deepti
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
deeptiarora is offline Offline
8 posts
since Jun 2007
Oct 24th, 2007
0

Re: exe creation and its usage without jdk/jre

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

Re: exe creation and its usage without jdk/jre

The answer to this is no.
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Oct 25th, 2007
0

Re: exe creation and its usage without jdk/jre

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
Reputation Points: 938
Solved Threads: 357
Posting Maven
stultuske is offline Offline
2,528 posts
since Jan 2007
Oct 25th, 2007
0

Re: exe creation and its usage without jdk/jre

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
deeptiarora is offline Offline
8 posts
since Jun 2007
Oct 25th, 2007
0

Re: exe creation and its usage without jdk/jre

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

Re: exe creation and its usage without jdk/jre

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

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: Storing Objects
Next Thread in Java Forum Timeline: request for java code to set the system time zone





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


Follow us on Twitter


© 2011 DaniWeb® LLC