• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to check Java Version while showing applet in browser

 
Shah Jenish
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
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic