Java Deployment Toolkit - 6u10
Wednesday Jun 18, 2008
Java Deployment Toolkit, yes again I am talking of 6u10. It deploy applets and applications to a large variety of clients with JS.
<HTML> <BODY> <script src="http://java.com/js/deployJava.js"> deployJava.installLatestJRE(); </script> </BODY> </HTML>
It looks small code but it can install the latest JRE on your machine. Just copy paste the code in a HTML page and run it. And here is the second one:
<HTML> <BODY> <script src="http://java.com/js/deployJava.js"></script> <script> var list = deployJava.getJREs(); var result = ""; result = list[0]; for (var i=1; i<list.length; i++) { result += ", " + list[i]; } alert("You have the following Java Platform(s) installed: \n" + result); </script> </BODY> </HTML>
This code will tell you the installed JRE's on your machine. In all this game, the important thing is deployJava.js which has lot of other cool method. Check the link in the code for details :-). We just need to use those functions for our need. There are some better example is on sun site.















Hi Vaibhav,
I have used above script to find out...
If it is so, then its a bug and Sun has to fix it....
I worked on an application running in an applet an...