2013-04-08 24 views
0

我有我的Linux PC上運行的Java小程序使用的httpd,它工作正常,但是當我移動的小程序,我們公司的服務器沒有任何反應後,我讓瀏覽器運行Java。Java小程序加載,但不是在生產中

的Index.html:

<html> 
    <head> 
     <title>KIRK Handset Software Updater</title> 
    </head> 
    <body> 
     <img alt="KIRK Handset Software Updater" src="KIRKHandsetSoftwareUpdater_banner.png"> 
     <br /> 
     <script src="http://www.java.com/js/deployJava.js"></script> 

     <script> 
      var attributes = { 
       codebase: 'http://xxxx.com/software/dect/JavaLoader', 
       code: 'FlashLoader.class', archive: 'FlashLoader.jar', 
       width: 500, height: 500, id: 'KIRK Handset Software Updater' }; 
      var parameters = { jnlp_href: 'jsflashloader-applet.jnlp' }; 
      deployJava.runApplet(attributes, parameters, '1.5'); 
     </script> 

     <br /> 
    </body> 
</html> 

Java控制檯輸出Linux的PC上運行時:該公司的網站上運行時

Match: beginTraversal 
Match: digest selected JREDesc: JREDesc[version 1.5+, heap=-1--1, args=null, href=null, sel=false, null, null], JREInfo: JREInfo for index 0: 
    platform is: 1.7 
    product is: 1.7.0_17 
    location is: http://java.sun.com/products/autodl/j2se 
    path is: C:\Program Files (x86)\Java\jre7\bin\javaw.exe 
    args is: null 
    native platform is: Windows, x86 [ x86, 32bit ] 
    JavaFX runtime is: JavaFX 2.2.7 found at C:\Program Files (x86)\Java\jre7\ 
    enabled is: true 
    registered is: true 
    system is: true 

    Match: ignoring maxHeap: -1 
    Match: ignoring InitHeap: -1 
    Match: digesting vmargs: null 
    Match: digested vmargs: [JVMParameters: isSecure: true, args: ] 
    Match: JVM args after accumulation: [JVMParameters: isSecure: true, args: ] 
    Match: digest LaunchDesc: http://172.29.140.8/javaflashloader/jsflashloader-applet.jnlp 
    Match: digest properties: [] 
    Match: JVM args: [JVMParameters: isSecure: true, args: ] 
    Match: endTraversal .. 
    Match: JVM args final: 
    Match: Running JREInfo Version match: 1.7.0.17 == 1.7.0.17 
    Match: Running JVM args match: have:<> satisfy want:<> 
os: Windows 7, arch: x86 
WARNING: RXTX Version mismatch 
    Jar version = RXTX-2.2pre1 
    native lib Version = RXTX-2.2pre2 
Worker thread started... 

Java控制檯完全是空的。

編輯:由於JNLP沒有加載我不包括它,但在這裏它是:

<?xml version="1.0" encoding="utf-8"?> 
<jnlp spec="1.0+" 
     href="jsflashloader-applet.jnlp"> 
    <information> 
     <title>KIRK Handset Software Updater</title> 
     <homepage href="index.html"/> 
     <description>Software Updater for KIRK 50-,60-,70- and Butterfly-Handset Series</description> 
     <shortcut> 
      <desktop/> 
      <menu submenu="VARS"/> 
     </shortcut> 
    </information> 
    <!-- update check="background" --> 
    <security> 
     <all-permissions/> 
    </security> 
    <resources> 
     <j2se version="1.5+" /> 
     <jar href="FlashLoader.jar" main="true" /> 
     <jar href="RXTXcomm.jar" /> 
    </resources> 
    <resources os="Mac OS X"> 
     <nativelib href="rxtx-native-macosx.jar" /> 
    </resources> 
    <resources os="Linux"> 
     <nativelib href="rxtx-native-linux.jar"/> 
    </resources> 
    <resources os="Windows" arch="x86_64"> 
     <nativelib href="rxtx-native-windows64.jar"/> 
    </resources> 
    <resources os="Windows" arch="x86"> 
     <nativelib href="rxtx-native-windows32.jar"/> 
    </resources> 
    <resources os="Windows" arch="amd64"> 
     <nativelib href="rxtx-native-windows64.jar"/> 
    </resources> 
    <applet-desc name="KIRK Handset Software Updater Applet" main-class="FlashLoader" width="500" height="500"></applet-desc> 
</jnlp> 
+0

你的jnlp文件是什麼? – 2013-04-08 10:11:19

+0

它可能與安全有關。查看安全限制。當你在本地主機上工作時,沒有這種限制。 – jddsantaella 2013-04-08 13:47:06

回答

0

JNLP文件中沒有足夠的Web服務器上的探測器MIME類型...

相關問題