Skip to content

Instantly share code, notes, and snippets.

@sentient
Last active November 26, 2018 05:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sentient/62ac11512f84e20fc4cb6cede4904978 to your computer and use it in GitHub Desktop.
Save sentient/62ac11512f84e20fc4cb6cede4904978 to your computer and use it in GitHub Desktop.
Running Java on Ubuntu 16

Java on Ubuntu 16.06

Notes on installing java and the java plugin for firefox (with exception list editing)

Install the JDK for Oracle

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Install the plugin to enable java in Firefox (no support for Chrome)

sudo apt-get install icedtea-plugin

Manage security exceptions in file

${user.home}/.java/deployment/security/exception.sites

One url per line. For example:

http://192.168.1.160
https://192.168.1.160

Add logging/tracing in the file

${user.home}/.java/deployment/deployment.properties

example:

deployment.modified.timestamp=1467208368096
deployment.version=8
deployment.browser.path=/usr/bin/firefox
deployment.javaws.jre.0.registered=false
deployment.javaws.jre.0.platform=1.8
deployment.javaws.jre.0.osname=Linux
deployment.javaws.jre.0.path=/usr/lib/jvm/java-8-oracle/jre/bin/java
deployment.javaws.jre.0.product=1.8.0_91
deployment.javaws.jre.0.osarch=amd64
deployment.javaws.jre.0.location=http\://java.sun.com/products/autodl/j2se
deployment.javaws.jre.0.enabled=true
deployment.javaws.jre.0.args=
**deployment.log=true**
**deployment.trace=true**
**deployment.trace.level=all**

Log and trace files at:

${user.home}/.java/deployment/log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment