aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes without installing JDK is it possibe to run Java EXE file.....? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "without installing JDK is it possibe to run Java EXE file.....?" Watch "without installing JDK is it possibe to run Java EXE file.....?" New topic
Author

without installing JDK is it possibe to run Java EXE file.....?

Anand Nuchchi
Greenhorn

Joined: Apr 15, 2006
Posts: 27
Hi,
I created a simple java program and converted to .exe with help of s/w called EXEJ. Its availble at "www.bysoft.se\sureshot\exej".
And on double clicking on exe file,it works. If i Uninstall the JDK then it won't work. so to Execute exe without JDK is it possible?


thanks
regards
Anand.
Sanjaya Sugiarto
Ranch Hand

Joined: Mar 25, 2004
Posts: 229
No, it's not possible. JRE is a minimum requirement.

Correct me if I am wrong...


<a href="http://www.wi.hs-furtwangen.de" target="_blank" rel="nofollow">Business Information Technology - Hochschule Furtwangen University, Germany</a>
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30762
    
156

Originally posted by Anand Nuchchi:
so to Execute exe without JDK is it possible?

No. Eclipse itself is written in Java.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

This "EXEJ" obviously produces EXE files that just invoke the JRE. But there do exist Java-to-EXE compilers that don't depend on an installed JRE. I'm not aware of a free one, but there are definitely commercial compilers. Google is your friend here as well.


[Jess in Action][AskingGoodQuestions]
Anand Nuchchi
Greenhorn

Joined: Apr 15, 2006
Posts: 27
Hi Sanjaya, Thanks.
One more....
I create the the exe file using the class file.
After words i delet the class file, then the exe file is not running?
Is there any possibilities to run the exe without class file.

Waiting for the reply...

Thanks and regards
Anand.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16145
    
  21

You can't run without the JRE anymore than you can run most recent C/C++ Windows apps without MFC42.DLL or Visual Basic programs without VBRUNxx.DLL. The shared modules are essential parts of your program. They're third-party components that provide shared functionality that isn't common enough to be part of the OS (actually, in some versions of Windows, MFC42.DLL is part of the OS).

Or at least they would be "third-party" if Microsoft didn't make both the OS and the Visual Studio language suite.


Customer surveys are for companies who didn't pay proper attention to begin with.
Anand Nuchchi
Greenhorn

Joined: Apr 15, 2006
Posts: 27
Ok, thanks.....
And one more thing is that,
Is the DOS has the builtin JVM?

And I think for every OS there is a built in JVM.

Am i right or wrong plz tell me?

waiting for reply

regards
Yilmaz Mete
Greenhorn

Joined: Dec 23, 2003
Posts: 28

Just my 2 cents on EXEd Java Code:

If anything else "works" fine enough, I am sure Multi Threading will not run as expected, since it is based on the availability of a Java Runtime Environment and not on native code.

Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Originally posted by Anand Nuchchi:
Ok, thanks.....
And one more thing is that,
Is the DOS has the builtin JVM?

And I think for every OS there is a built in JVM.

Am i right or wrong plz tell me?

waiting for reply

regards


Only Mac OS X has build in JVM.
[ April 22, 2006: Message edited by: Rene Larsen ]

Regards, Rene Larsen
Dropbox Invite
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42285
    
  64
I do believe that quite a few Wintel boxes have the JRE pre-installed though (e.g. those from IBM, Dell, Gateway, HP), although that's not strictly being part of the OS.


Ping & DNS - my free Android networking tools app
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
Most operating systems don't come with a preinstalled JVM, or at best with one that either fundamentally broken (gcj on Linux) or seriously outdated (MS JRE 1.1 on Windows 2000 and older).

But it shouldn't be a problem to install a JVM for your users. Downloads aren't large and installation is pretty painless (and if you distribute on CD for example you can include the installers for the most used operating systems with your application, see the Sun license terms for details on what you can and cannot do).


42
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: without installing JDK is it possibe to run Java EXE file.....?