• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

executable jar file without having JDK installed

 
medhaj hambi
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I got an executable jar file out of eclipse and I want to distribute my application to my clients. But the glitch is I donot want them to have JDK/JRE installed on their machines.
Is there anyway I can do that ?

Thanks a lot,
V
 
Greg Charles
Sheriff
Posts: 2985
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This was a bigger deal 10 years ago than it is now. I'm not sure why that is, but I guess people don't distribute stand-alone Java applications as often, or stand-alone programs at all for that matter. Anyway, what you probably need is a Ahead-of-time (AOT) compiler. There's a good article about it here.
 
Paul Clapham
Sheriff
Posts: 21119
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
More commonly now people use Java Web Start. If you set it up correctly, you just post your application on your website and the JNLP code in your web page takes care of making sure the user has the correct JRE on their system.

(I disregarded your desire for the user to not have the JRE on their machine because it seemed misguided. Why would you not want that?)
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's rare a machine doesn't have a JRE installed these days, though; the only machines I have to install anything on are some Linux distros.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic