Ошибка сетевого соединения с файлом JNLP Java AutoViewer - PullRequest
0 голосов
/ 14 марта 2019

У меня есть 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 голосов
/ 03 июля 2019

Попробуйте сменить поставщика с «Avocent» на «Dell», добавьте «avmWin32Lib.jar» для ресурсов Windows (если вы используете 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>

Сначала вы можете попробовать только с библиотеками, а если не работает, попробуйте все вместе.

...