2013-02-14 99 views

回答

4
window.navigator.javaEnabled()//true if java enabled 

window.navigator.plugins // will give u all the plugins installed in the browser 
3

我建議你去由Oracle推薦的方法

<script src="http://www.java.com/js/deployJava.js"></script> 
<script> 
    if (deployJava.versionCheck('1.6+')) {    
     var url = "http://docs.oracle.com/javase/tutorialJWS/deployment/webstart/examples/Notepad.jnlp"; 

     <!-- you can also invoke deployJava.runApplet here --> 
     deployJava.createWebStartLaunchButton(url, '1.6.0'); 
    } else { 
     document.location.href="http://oracle.com"; 
    } 
</script> 

這是從http://docs.oracle.com/javase/tutorial/deployment/deploymentInDepth/jreVersionCheck.html

採取你也應該看看Java部署工具包 http://docs.oracle.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html#deplToolkit

+1

我有部署java腳本通過我可以找到天氣的Java插件安裝或不,但我想天氣它啓用或不 – 2013-02-14 09:25:18

相關問題