Detecting JRE version in IE

Aphsal
Aphsal used Ask the Experts™
on
Hi Experts
   I made a swing applet and I want to ckect the proper java plugin to installed on client machine. How can I detect the JRE version on client so that I can redirect him to download the proper plugin to view the applet?



Aphsal
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Mick BarryJava Developer
Top Expert 2010

Commented:
String version = System.getProperty("java.version");
try this page, maybe can get some idea :
http://forum.java.sun.com/thread.jsp?forum=30&thread=168544

hth,

Mick BarryJava Developer
Top Expert 2010

Commented:
You can actually handle the redirection using the object tag. This allows you to specify both the required plugin version, and the location to download it from if it is not installed.
Use the htmlconverter to convert your applet tag to an object tag.

Author

Commented:
thanks friends I got the solution :-)
Mick BarryJava Developer
Top Expert 2010

Commented:
and that was?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial