• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, it's not possible. JRE is a minimum requirement.

Correct me if I am wrong...
 
author & internet detective
Posts: 42056
926
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 28404
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
Or we might never have existed at all. Freaky. So we should cherish everything. Even this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic