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?

I've crawled dotfiles on GitHub and want to share some statistic.

I've crawled dotfiles on GitHub and want to share some statistic.

Link

Enable High Quality Audio on Linux

Cockpit 214 — Cockpit Project

Cockpit 214 — Cockpit Project

Link

Change The Default Browser in i3 Manjaro Linux :: rockyourcode — notes on programming

Why Vim is the best start to learning Gnu/Linux

Why Vim is the best start to learning Gnu/Linux

Link

algo/client-linux-wireguard.md at master · trailofbits/algo

Using WireGuard as a VPN client for Ubuntu - Except the installation part, the rest of the document is still valid for Arch based distro

Link

QuteBrowser and LastPass

2 min read

I've been using QuteBrowser for the past 2 days (more on that later), and the only thing I missed so far was a LastPass integration.

Now, QuteBrowser does not come with a plugin store like Firefox or Chrome, but it is still possible to use LastPass with it.

First we need to install lastpass-cli and login to the service. I'm running Manjaro Linux on my laptop so I use yaourt :

yaourt lasstpass-cli

Now we login to Lastpass :

lpass login <email@domain.tld>

A prompt pops-up, asking for your master password. If everything went right, the CLI should responds with

Success: Logged in as <email@domain.tld>.

Since we're good to go, we can now download the QuteBrowser userscripts :

mkdir -p $/.local/share/qutebrowser/userscripts && cd $_

wget https://raw.githubusercontent.com/welps/qutebrowser/9a85796ac30ef33218dd7dee9db6a3c28364f668/misc/us...

chmod +x qute-lastpass

The script is installed. We can restart QuteBrowser by typing :restart.

Now everytime you need to find your login/password for a given page type :spawn --userscript qute-lastpass

Troubleshooting

Process stderr:
Traceback (most recent call last):
File "/home/cedric/.local/share/qutebrowser/userscripts/qute-lastpass", line 50, in <module>
import tldextract
ModuleNotFoundError: No module named 'tldextract'

Solution : pip install tldextract --user

FileNotFoundError: [Errno 2] No such file or directory: 'lpass': 'lpass'

Solution : install lastpass-cli

FileNotFoundError: [Errno 2] No such file or directory: 'rofi': 'rofi'

Solution : install rofi

Today I switched from Ubuntu to Manjaro - so far so good. Anyone having tips for a Arch/Manjaro newcomer? <p>#linux </p>