aspose file tools*
The moose likes Applets and the fly likes How to check Java Version while showing applet in browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "How to check Java Version while showing applet in browser" Watch "How to check Java Version while showing applet in browser" New topic
Author

How to check Java Version while showing applet in browser

Shah Jenish
Greenhorn

Joined: Feb 19, 2009
Posts: 13
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
Marshal

Joined: Mar 22, 2005
Posts: 42292
    
  64
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?


Ping & DNS - my free Android networking tools app
 
Consider Paul's rocket mass heater.
 
subject: How to check Java Version while showing applet in browser