Java AutoViewer JNLP文件的网络连接错误

时间:2019-03-14 15:29:52

标签: java jnlp

我有一个IPKVM,当我尝试连接到设备时,会下载一个.jnlp文件。运行该文件总是错误为“网络连接错误”。我希望有人可以查看他们的代码,并告诉我需要调整的内容,或者是否需要其他版本的Java。预先感谢!

<?xml version="1.0" encoding="utf-8"?>

<!-- JNLP File for Java Video Viewer Application -->

<jnlp spec="1.0+" codebase="http://192.168.2.28/webstart2">
   <information>
      <title>Video Session Viewer</title>
      <vendor>Avocent</vendor>
      <description>Video Session Viewer</description>
      <description kind="short">Video Viewer</description>
   </information>

   <security>
      <all-permissions />
   </security>

   <resources>
      <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
      <jar href="avctVideo.jar" main="true" />
      <property name="user.variant" value="avct" />
      <property name="oem.variant" value="avct" />
   </resources>
   <resources os="Windows">
     <nativelib href="acvvWin32Lib.jar" />
   </resources>
   <resources os="Linux">
     <nativelib href="libavctLinux.jar" />
   </resources>
   <resources os="SunOS">
     <nativelib href="libavctSolaris.jar" />
   </resources>

   <application-desc main-class="com.avocent.video.Nautilus">
      <argument>title="TempSense - Video Session Viewer"</argument>
      <argument>devicetype=avsp</argument>
      <argument>path=a:192.168.2.28,r:520430-073DA6,c:0,e:1,s:"TempSense",l:120</argument>
      <argument>oem=Avocent</argument>
      <argument>user=redacted</argument>
      <argument>password=redacted</argument>

   </application-desc>
</jnlp>

1 个答案:

答案 0 :(得分:-1)

尝试将供应商从“ Avocent”更改为“ Dell”,添加Windows资源的“ avmWin32Lib.jar”(如果使用Windows),添加“ libavmLinux.jar”(如果使用Linux):

<?xml version="1.0" encoding="utf-8"?>

<!-- JNLP File for Java Video Viewer Application -->

<jnlp spec="1.0+" codebase="http://192.168.2.28/webstart2">
   <information>
      <title>Video Session Viewer</title>
      <vendor>Dell</vendor>
      <description>Video Session Viewer</description>
      <description kind="short">Video Viewer</description>
   </information>

   <security>
      <all-permissions />
   </security>

   <resources>
      <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
      <jar href="avctVideo.jar" main="true" />
      <property name="user.variant" value="avct" />
      <property name="oem.variant" value="avct" />
   </resources>
   <resources os="Windows">
     <nativelib href="acvvWin32Lib.jar" />
     <nativelib href="avmWin32Lib.jar" />
   </resources>
   <resources os="Linux">
     <nativelib href="libavctLinux.jar" />
     <nativelib href="libavmLinux.jar" />
   </resources>
   <resources os="SunOS">
     <nativelib href="libavctSolaris.jar" />
   </resources>

   <application-desc main-class="com.avocent.video.Nautilus">
      <argument>title="TempSense - Video Session Viewer"</argument>
      <argument>devicetype=avsp</argument>
      <argument>path=a:192.168.2.28,r:520430-073DA6,c:0,e:1,s:"TempSense",l:120</argument>
      <argument>oem=Dell</argument>
      <argument>user=redacted</argument>
      <argument>password=redacted</argument>

   </application-desc>
</jnlp>

您一开始只能尝试使用这些库,如果无法使用,请一起尝试。