• 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

executable jar file without having JDK installed

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 3063
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?)
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic