Folder /etc/java-8-openjdk/ is not created and all properties and cfg files are missing after installing from
pool/universe/o/openjdk-8/openjdk-8-jre-headless_8u66-b17-1_amd64.deb
with:
apt-get install openjdk-8-jre-headless openjdk-8-jdk
These files should be installed, but are all missing:
root@ThinkPad-T500:/# dpkg -S /etc/java-8-openjdk/*.*
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/images/cursors/cursors.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/accessibility.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/security/java.security
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/swing.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/management/snmp.acl
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/sound.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/jvm-amd64.cfg
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/logging.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/calendars.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/flavormap.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/management/jmxremote.password
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/content-types.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/psfont.properties.ja
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/psfontj2d.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/security/java.policy
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/security/blacklisted.certs
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/net.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/management/jmxremote.access
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/management/management.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/security/nss.cfg
In consequence, e.g. NetBeans IDE 8.1 fails with:
root@ThinkPad-T500:/# /usr/local/netbeans-8.1/bin/netbeans
Unrecognized option: -client
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
NetBeans IDE 8.1 still freezes while starting when pinning to 8u45 from vivid and copying jvm-amd64.cfg from java-7 because only 3 files where installed:
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/accessibility.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/security/java.security
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/security/java.policy
NetBeans IDE 8.1 runs fine with java-7 after applying the workaround from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=808860
How did I ran into this situation?
NetBeans IDE 8.1 ran fine for long time in my Ubuntu 15.04 with java-8.
Last week I upgraded to 15.10.
Since then it freezed after 2 minutes.
Because I first didn't know about above mentioned bug, I tried several things including new installations of NetBeans and JDK. While doing this at some moment I deleted the /etc/java-8-openjdk/ folder, which was filled like the above list from former installations. I thought, I could delete it in assuming it would become created again when installing openjdk-8-jdk package. But this was not the case. Don't know, which build of jdk-8 I should install to get the files back, 8u45 only did recover 3 files of them.
Because with 8u66-b17-1 no security properties where installed, I file this bug as a security vulnerability.
Thanks for taking the time to report this bug and helping to make Ubuntu better. We appreciate the difficulties you are facing, but this appears to be a "regular" (non-security) bug. I have unmarked it as a security issue since this bug does not show evidence of allowing attackers to cross privilege boundaries nor directly cause loss of data/privacy. Please feel free to report any other bugs you may find.