By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,253 Members | 1,690 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,253 IT Pros & Developers. It's quick & easy.

getVersion of the Java VM?

P: n/a
Hi,

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

Cyrill
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a


Cyrill Zadra wrote:
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'))
}

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2

P: n/a
Hi,
Martin Honnen wrote:


Cyrill Zadra wrote:
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'))
}


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

Cyrill

Jul 20 '05 #3

P: n/a


Cyrill Zadra wrote:
Hi,
Martin Honnen wrote:


Cyrill Zadra wrote:
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'))
}


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)

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.