Skip to main content

javaws - You are trying to get resource *.jar but it is not in cache and could not be downloaded

4 min read

Hello,I'm currently trying to get a jnlp file running with javaws under Linux. I successfully ran that same file via a virtual machine on VirtualBox, but when i run it from Linux, i keep getting an error complaining about external ressources not being downloaded - if I get it right, i don't know the first thing about Java and javaws.I seem to understand it could be an SSL error, so i tried to download the website's SSL certifcicate and added it in my keychain like this :gnutls-cli --print-cert www.whistenligne.com\ < /dev/null \ > www.whistenligne.com.cert keytool -import -alias mycertificate -keystore /etc/ssl/certs/java/cacerts -file www.whistenligne.com.cert I spent a fair amount of time trying to google the error I have, I think I understand it but have no idea how to solve it.Here's the error :$ javaws ~/.wine/drive_c/Program\ Files\ \(x86\)/Whistenligne/whist.jnlp selected jre: /usr/lib/jvm/default-runtime WARNING: package sun.applet not in java.desktop WARNING: package com.sun.net.ssl.internal.ssl not in java.base WARNING: package javax.jnlp not in java.desktop You are trying to get resource https://www.whistenligne.com/jar/wel-install.jar but it is not in cache and could not be downloaded. Attempting to continue, but you may expect failure You are trying to get resource https://www.whistenligne.com/jar/jdom.jar but it is not in cache and could not be downloaded. Attempting to continue, but you may expect failure You are trying to get resource https://www.whistenligne.com/jar/gson-2.3.1.jar but it is not in cache and could not be downloaded. Attempting to continue, but you may expect failure JAR https://www.whistenligne.com/jar/wel-install.jar not found. Continuing. JAR https://www.whistenligne.com/jar/jdom.jar not found. Continuing. JAR https://www.whistenligne.com/jar/gson-2.3.1.jar not found. Continuing. JAR https://www.whistenligne.com/jar/wel-install.jar not found. Continuing. JAR https://www.whistenligne.com/jar/jdom.jar not found. Continuing. JAR https://www.whistenligne.com/jar/gson-2.3.1.jar not found. Continuing. netx: Initialization Error: Could not initialize application. (Fatal: Initialization Error: Unknown Main-Class. Could not determine the main class for this application.) 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:822) at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:531) at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:945) 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.JNLPClassLoader.initializeResources(JNLPClassLoader.java:774) at net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:338) at net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:421) at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:495) at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:468) at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:814) ... 2 more More information :$ java --version openjdk 13.0.2 2020-01-14 OpenJDK Runtime Environment (build 13.0.2 8) OpenJDK 64-Bit Server VM (build 13.0.2 8, mixed mode) $ javaws --version selected jre: /usr/lib/jvm/default-runtime WARNING: package sun.applet not in java.desktop WARNING: package com.sun.net.ssl.internal.ssl not in java.base WARNING: package javax.jnlp not in java.desktop icedtea-web 1.8.3 Is there anything I did wrong or anything else i could try?