• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Anand Nuchchi
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, it's not possible. JRE is a minimum requirement.

Correct me if I am wrong...
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34863
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Anand Nuchchi:
so to Execute exe without JDK is it possible?

No. Eclipse itself is written in Java.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Anand Nuchchi
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18281
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Anand Nuchchi
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic