# Alte jnlp Viewer (javaWebstart Dateien mit Aktueller Java zum laufen bringen)

Beschreibung:

Seid Java 11 funktionieren jnlp Dateien nicht mehr.  
Es gib aber eine möglichkeit diese doch noch zu nutzen.  
Mit dem Tool [https://openwebstart.com/](https://openwebstart.com/)

Vorrausetzung:

```
apt install gnutls-bin
```

Installation

Einfach die deb Datei downloaden installieren.

Ausführen.

```
javaws jviewer.jnlp

eure datei kann auch anders heißen
```

  
Sollte dieser feherl auftauchen

```
orge.jnlp.LaunchException: Fatal: Initialization Error: Unknown Main-Class. Could not determine the main class for this application.
```

<details id="bkmrk-ganze-log-net.source"><summary>Log aus dem Error Fenster</summary>

net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize application. The application has not been initialized, for more information execute javaws from the command line.  
 at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:593)  
 at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:374)  
 at net.sourceforge.jnlp.Launcher.access$300(Launcher.java:72)  
 at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:661)  
Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Unknown Main-Class. Could not determine the main class for this application.  
 at net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader.initializeResources(JNLPClassLoader.java:753)  
 at net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader.&lt;init&gt;(JNLPClassLoader.java:352)  
 at net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader.createInstance(JNLPClassLoader.java:425)  
 at net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader.getInstance(JNLPClassLoader.java:497)  
 at net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader.getInstance(JNLPClassLoader.java:470)  
 at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:585)  
 ... 3 more

</details>Log aus der Konsole der die eigentlichen Fehler anzeigt

<details id="bkmrk-ganze-log-aus-log-fe"><summary>Ganze Log aus Log Fenster</summary>

No local file found for https://192.168.178.195/Java/release/Linux\_x86\_64.jar  
Error flag set for resource 'https://192.168.178.195/Java/release/Linux\_x86\_64.jar'. Can not return a local file for the resource  
Activate native: https://192.168.178.195/Java/release/Linux\_x86\_64.jar  
Activate jar: https://192.168.178.195/Java/release/Linux\_x86\_64.jar  
CachedJarFileCallback.addMapping : https://192.168.178.195/Java/release/Linux\_x86\_64.jar -&gt; https://192.168.178.195/Java/release/Linux\_x86\_64.jar  
Error flag set for resource 'https://192.168.178.195/Java/release/Linux\_x86\_64.jar'. Can not return a local file for the resource  
DownloadServiceListener will be disposed  
Download done. Shutting down executor  
DownloadServiceListener for JViewer will be created  
Jars not ready to provide attribute Application-Name  
checkForMain JAR https://192.168.178.195/Java/release/Linux\_x86\_64.jar not found. Continuing.  
Error flag set for resource 'https://192.168.178.195/Java/release/Linux\_x86\_64.jar'. Can not return a local file for the resource  
Error flag set for resource 'https://192.168.178.195/Java/release/Linux\_x86\_64.jar'. Can not return a local file for the resource  
Error flag set for resource 'https://192.168.178.195/Java/release/Linux\_x86\_64.jar'. Can not return a local file for the resource  
Error flag set for resource 'https://192.168.178.195/Java/release/Linux\_x86\_64.jar'. Can not return a local file for the resource  
No local file found for https://192.168.178.195/Java/release/JViewer-SOC.jar  
Error flag set for resource 'https://192.168.178.195/Java/release/JViewer-SOC.jar'. Can not return a local file for the resource  
Activate native: https://192.168.178.195/Java/release/JViewer-SOC.jar  
Activate jar: https://192.168.178.195/Java/release/JViewer-SOC.jar  
CachedJarFileCallback.addMapping : https://192.168.178.195/Java/release/JViewer-SOC.jar -&gt; https://192.168.178.195/Java/release/JViewer-SOC.jar  
Error flag set for resource 'https://192.168.178.195/Java/release/JViewer-SOC.jar'. Can not return a local file for the resource  
DownloadServiceListener will be disposed  
Download done. Shutting down executor  
System logger called with result of 0  
DownloadServiceListener for JViewer will be created  
Jars not ready to provide attribute Application-Name  
checkForMain JAR https://192.168.178.195/Java/release/JViewer-SOC.jar not found. Continuing.  
Error flag set for resource 'https://192.168.178.195/Java/release/JViewer-SOC.jar'. Can not return a local file for the resource  
Error flag set for resource 'https://192.168.178.195/Java/release/JViewer-SOC.jar'. Can not return a local file for the resource  
Error flag set for resource 'https://192.168.178.195/Java/release/JViewer-SOC.jar'. Can not return a local file for the resource  
Error flag set for resource 'https://192.168.178.195/Java/release/JViewer-SOC.jar'. Can not return a local file for the resource  
No local file found for https://192.168.178.195/Java/release/JViewer.jar  
Error flag set for resource 'https://192.168.178.195/Java/release/JViewer.jar'. Can not return a local file for the resource  
Activate native: https://192.168.178.195/Java/release/JViewer.jar  
Activate jar: https://192.168.178.195/Java/release/JViewer.jar  
CachedJarFileCallback.addMapping : https://192.168.178.195/Java/release/JViewer.jar -&gt; https://192.168.178.195/Java/release/JViewer.jar  
Error flag set for resource 'https://192.168.178.195/Java/release/JViewer.jar'. Can not return a local file for the resource  
DownloadServiceListener will be disposed  
Download done. Shutting down executor

</details>Sollte es zu diesem Fehler kommen, liegt es an den cipher und sslv3 und das Zertifikat selbst signiert sind.  
Das IPMI ist dann so alt, das nix mehr geht.

Lösung:

in OpenWebStart die Einstellungen öffnen