getVersion of the Java VM?

C

Cyrill Zadra

Hi,

Does anyone know to request the version of the Virtual Machine on the
Client (Browser) by JavaScript?

Cyrill
 
M

Martin Honnen

Cyrill said:
Hi,

Does anyone know to request the version of the Virtual Machine on the
Client (Browser) by JavaScript?

In browsers like NN4, NN7 or Opera 7 which support LiveConnect you can do

if (navigator.javaEnabled() &&
typeof java != 'undefined') {
alert (java.lang.System.getProperty('java.version'))
}
 
C

Cyrill Zadra

Hi,


Martin said:
In browsers like NN4, NN7 or Opera 7 which support LiveConnect you can do

if (navigator.javaEnabled() &&
typeof java != 'undefined') {
alert (java.lang.System.getProperty('java.version'))
}

Thanks! Do also know something for IE 5 and above?

Cyrill
 
M

Martin Honnen

Cyrill said:
Hi,




Thanks! Do also know something for IE 5 and above?

You would need to insert a Java applet in the page which exposes a
method that allows you to question the above property
java.lang.System.getProperty('java.version')
The applet method can then be called from JavaScript (at least with IE/Win)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,093
Messages
2,570,607
Members
47,227
Latest member
bluerose1

Latest Threads

Top