File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes How to get client machine java-version using java,javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to get client machine java-version using java,javascript" Watch "How to get client machine java-version using java,javascript" New topic
Author

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

Hasan Jafferullah Hoshmin
Greenhorn

Joined: Mar 14, 2011
Posts: 3
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
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Answered here:
http://stackoverflow.com/questions/5496322/how-to-get-client-machine-java-version-using-java-javascript
Hasan Jafferullah Hoshmin
Greenhorn

Joined: Mar 14, 2011
Posts: 3
I want a sample code here pl
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42269
    
  64
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.


Ping & DNS - my free Android networking tools app
 
jQuery in Action, 2nd edition
 
subject: How to get client machine java-version using java,javascript