• 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

How to detect if java is available on the client machine or not?

 
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was trying to use JNLP technique for installing one of my Stand Application which I have made in java 1.3 and was wondering if I could find out whether the client machine has java or not and if not it will first launch java than web start and than my application...
Is it possible or I am asking too much?
regards,
Arun Mahajan
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Arun,
When you install Javawebstart on a client machine, it installs a JRE along with it. JNLP would be meaningless without Java Web Start installed in it (.jnlp files would not be associated with anything in your system). So, assuming that Java Web Start is installed in the client machine, a JRE should also be present in it..reasonably speaking.
If you want to detect if the client machine has Java or not..one way would be to write an application that would scan the system registry (assuming your client is a NT machine) for the word "VM" or "Java". (Alternatively, u can just do a 'System.getProperty("java.version") ' in your code and see what it returns). If it does not exist, start the Java (JRE) installation.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic