Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

How to check Java Version while showing applet in browser

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

We have an application which has client and server mechanism.

Our application can be accessed by any internet browser on any machine of the network but there is only one server in the network.

One of the functionality in the application is described below.

We do have one link in our application webpage. When user clicks on that link, the request goes to the server component which is running on different machine. Now server process the request and in responce we do show some images in applet window at the customer webpage.

Now problem is, when the client machine browser has some lower version of Java, we are not able to show the image but only shows a blank page.

What we want to do is to show some specific warning message when we find that the Java version at client machine is lower than required.

Can anybody please let me know how can I achieve this?

Thanks in Advance,
Jenish
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to do this in the applet, then there are various system properties you could check; java.specification.version or java.version should do the trick.

If you want to do it before the applet is started, then there's JavaScript code at http://java.com/js/deployJava.js that can be used for checking the JVM version.

Out of curiosity: What is it about displaying images that requires a newer JVM? Or are we talking about really old JREs from the Java 1.3 times?
 
I didn't say it. I'm just telling you what this tiny ad said.
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic