UPDATE2:
On startup, Firefox references the java plugin file located in /usr/lib/mozilla/plugins
, this file could be named libjavaplugin.so
or mozilla-javaplugin.so
Currently, the IcedTea install from Ubuntu Software Center is IcedTea-plugin7 then its configuration results in the incorrect JVM version reported by FireFox about:plugins
and from the Oracle browser test - despite a prior OpenJDK8 installation . A possible explanation is the way IcedTea configures itself by creating directories in /usr/lib/jvm
with names prefixed by java-<version>-openjdk<bits>
even if these JVMs are not installed on the machine.
- java-6-openjdk-amd64
- java-7-openjdk-amd64
- java-8-openjdk-amd64
symLinks are then created to these folders for the installed jdk and a default jdk1.7 - in the case that openjdk8 was installed.
- java-1.7.0-openjdk-amd64
- java-1.8.0-openjdk-amd64 (installed openJDK)
The symlink itweb-settings
is configured to reference alternatives for a configuration file created in each JVM copy folder
/usr/lib/jvm/java-6-openjdk-amd64/jre/bin/itweb-settings
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/itweb-settings
and an executable IcedTeaPlugin.so
at location /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64
referenced by link mozilla-javaplugin.so
However, the IcedTea-plugin7 does not place a configuration or executable within the copy folder of java-8-openjdk-amd64/jre/
which could explain the selection of the default / higher priority jdk7 as defined by the symlink mozilla-javaplugin.so
.
Since, you have already installed IcedTea-plugin8 you need to confirm the configuration then attempt to select the different JVMs as you required.
- close FireFox
- confirm the executable and config files are located within the openJDK8 copy folder
/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64
and
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin
- confirm the contents of the config file references the correct JVM
confirm the value of symlink itweb-settings
to the correct configuration file per JVM
sudo update-alternatives --display itweb-settings
if this works for jdk8 then update-alternatives for each JVM
sudo update-alternatives --install mozilla-plugins.so <IcedTeaPlugin.so per JVM>
sudo update-alternatives --install itweb-settings <itweb-settings per JVM>
then configure itweb-settings as you require to use each JVM
sudo update-alternatives --configure itweb-settings
- check JVM version in Firefox
****** UPDATE3 ******
itweb-settings
configuration file references; two possible paths from the HOME directory for the deployment.properties
~/.config/icedtea-web/deployment.properties
~/.icedtea/deployment.properties
and a global path
/etc/.java/.deploy/deployment.properties
Maybe one of these files is referencing openJdk6 ?
****** UPDATE4 ******
The plugin relies on symlink priority, so ensure that jdk8 has the highest priority then update-alternatives
to auto mode
.
And ensure that the symlink for javaws
is defined
uninstall then re-install the v8 plugin
Best Answer
This should get you started:
Some things you should consider:
echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
has to be. Might be a line earlier.cd idea-IC-123.169/bin
is dependend on the IntelliJ version, as the extracted folder is named in that way. It only works with the version available while I'm writing this.