• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

How to get client machine java-version using java,javascript

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all - Is it possible to get client machine java-version using javascript

My Code is here:

<html>
<head>
<script src="http://java.com/js/deployJava.js"></script>
<script type="text/javascript">
function fun1()
{
if( deployJava.versionCheck("1.6")==true )
{
document.getElementById("version").innerHTML="Version Supported";
document.getElementById("versionname").innerHTML = java.lang.System.getProperty("java.version");

}else
{
document.getElementById("version").innerHTML="Version not Supported";
}
}
</script>
</head>
<body onload="fun1()">
<div id="version"></div>
<div id="versionname"></div>
</body>
</html>
But this shows only my java version installed and not the client machine java-version Please help me

Thanks - Haan
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Answered here:
http://stackoverflow.com/questions/5496322/how-to-get-client-machine-java-version-using-java-javascript
 
Hasan Jafferullah Hoshmin
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want a sample code here pl
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To answer the question more broadly (by teaching you how to detect all kinds of client-side capabilities), have a look here.

Hasan Jafferullah Hoshmin wrote:I want a sample code here pl


And you will have it after you've spent a bit of time learning about this stuff.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic