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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

How to check Java Version while showing applet in browser

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,
Posts: 43016
  • 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 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!
    Bookmark Topic Watch Topic
  • New Topic