For some reason I can't get the variable to be read using JavaScript.
I am using an applet and the errors I get in my Chrome console is:
Uncaught Error: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "getenv.processor_identifer")
Uncaught Error: Error calling method on NPObject.
Access code:
<html>
<head>
<title>Javascript call Applet example</title>
</head>
<body>
<script type="text/javascript">
function callSerial() {
var foo = systemInfo.getSerial();
console.log(foo);
}
</script>
<center>
<form>
<input type="button" value="Call Applet" onclick="callSerial();"/>
</form>
<br/><br/>
<applet id="systemInfo" code="systeminfo.class" width="300" height="50"></applet>
</center>
</body>
</html>
Any ideas?