• Post Reply Bookmark Topic Watch Topic
  • New Topic

Generate exe File from Java class  RSS feed

 
Klaus Linzner
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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
 
James Swan
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • 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.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch, Klaus!
I'm moving this to the Intermediate forum...
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thanks everybody for your help! I hope it will work!!
Klausi
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!