• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Generate exe File from Java class

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
I heard that its possible to generate exe Files out of Java classes.
And here is my question:
Is it possible to run these exe Files without the JVM?
The problem is, that I have to write a program which will run under several Win2K clients. But none of them has the JVM installed and I can't install it everywhere.
And as alternative: is the standard VM included in the Windows Installation enough to handle my code? I really don't care if I have to write it in J++, or suns Java - I just dont't want to do the program in Visual C++
Please help,
regards, Klausi
 
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Zero G (http://www.zerog.com), have a pretty cool product called InstallAnywhere for doing just that.
You can choose to bundle a JVM with your app (you can also choose which JVM to use) etc.
Should cover all your needs.
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch, Klaus!
I'm moving this to the Intermediate forum...
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
InstallSheild is another option.

And yes, installing Java for them if they do not have it is a common practice. In many cases they just do not have the proper version of Java, so many apps bundle a JRE with their app as a matter of best practice. You don't have to actually INSTALL your verion of the JRE on their machine, just make sure to modify their classpath before invoking your app.
One way to do that is to have a .bat or .sh file that forces the classpath to look at your favorite JRE just before calling the app.
 
Klaus Linzner
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks everybody for your help! I hope it will work!!
Klausi
 
What are you doing? You are supposed to be reading this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic