<html>
<head>
<script language="javascript">
try{
if(document.myApplet.isActive()){
alert("plugin JRE");
}
}catch(error){
alert("no plugin JRE");
}
</script>
</head>
<body>
<applet name="myApplet" id="myApplet"></applet>
</body>
</html>
//run the page in your Firefox, you can see you browser will install jre automatically