Plug-in 1.3.1

I am trying to do a check on a client machine to see what version of plug-in they have on their machine. They need to have 1.3.1 or better to run the program we are writing. Does anyone know how to write a check or some type of validation to see if and what version they have on their machine? I don't want to automatically download the JRE but only prompt them that they will need to do so themselves in order to continue.

Terry

[451 byte] By [tapodaca] at [2007-9-26 3:10:11]
# 1
If kick off an applet you can run it and useSystem.getProperty("java.version");
geneman at 2007-6-29 11:16:30 > top of Java-index,Desktop,Deploying...
# 2

//Reset printing page

//Attempting to call parent.reloadPrintPage()

//A java.net.MalformedURLException: unknown protocol: javascript exception has occurred in the call_javascript() function

This is the error i get back when the console runs! I know what the problem is...I just need to know how to handle this on the clients machine if they do not have the 1.3.1 plugin, without automatically doing the download.

tapodaca at 2007-6-29 11:16:30 > top of Java-index,Desktop,Deploying...
# 3
I see what you are saying geneman, but I just need to check the Plug-in version...then tell the user to download it manually if they don't have the right one.
tapodaca at 2007-6-29 11:16:30 > top of Java-index,Desktop,Deploying...
# 4

If you can read the regitry the following key will be present under win32 "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.3.1". I don't know how to do this under a browser but I'm sure it's possible. Another approach may be to use the java plugin's autoinstall mechanism. It does prompt the user prior to downloding and is only downloaded if it is needed. See the following: http://java.sun.com/products/plugin/1.3/docs/intranet.html

geneman at 2007-6-29 11:16:30 > top of Java-index,Desktop,Deploying...
# 5
So is there no way like with 1.3.0 to automatically check the version and download the correct one? or is 1.3.0 the only available auto downloaded plugin?
dnoyeB at 2007-6-29 11:16:30 > top of Java-index,Desktop,Deploying...
# 6
dont know why I asked that since I have 1.3.1 autodownloading. maybe I hadne learned that yet...
dnoyeB at 2007-6-29 11:16:30 > top of Java-index,Desktop,Deploying...
# 7

hi. i might be stating the obvious, but if u specify the p-gin version in the HTML page it will prompt the user to download the p-gin only if their version is older than the necessary one. The user can refuse or accept.

<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"

... codebase="j2re-1_3_0_01-win.exe#version=1,3,1">

HTH.

shayl at 2007-6-29 11:16:30 > top of Java-index,Desktop,Deploying...