Java Web Start

Configure server

Configure the web server so that files with the .jnlp extension are set to the application/x-java-jnlp-file MIME type.

Sign Jar File

keytool -genkey -keystore JWSKeystore -alias mbcladwell

keytool -importkeystore -srckeystore JWSKeystore -destkeystore JWSKeystore -deststoretype pkcs12

keytool -selfcert -alias mbcladwell -keystore JWSKeystore

keytool -list -keystore JWSKeystore

jarsigner -keystore JWSKeystore ./temp/bllmlkg-0.12.jar mbcladwell

Diagnosis

keytool -keystore JWSKeystore -list -v

Transfer jar and .jnlp file to the web folder.

Launch

Launch

Clear cache

On Debian with icedtea the cach is at ~/.cache/icedtea-web/cache

$itweb-setting for a control panel like manager

/#javaws -Xclearcache to clear at the command line

or
$rm -rf /home/mbc/.cache/icedtea-web/cache/*

to remove content; don’t delete the cache directory

Diagnose problems

ls -l /usr/bin/java /usr/bin/javaws
ls -l /etc/alternatives/java /etc/alternatives/javaws
dpkg –list openjdk-8* icedtea-8*

update-alternatives –install “/usr/bin/javaws” “javaws” “/opt/java/64/jre1.8.0_161/bin/javaws” 1
update-alternatives –set javaws /opt/java/64/jre1.8.0_161/bin/javaws
update-alternatives –list javaws

2019-06-26 had to install icedtea-netx to get the javaws functionality

Install on Debian

apt-get install icedtea-netx

Share