Ubuntu

Comment 1 for bug 945019

If default-jre-headless is installed, the following line in /etc/apparmor.d/abstractions/ubuntu-browsers.d/java causes the parser to fail:
/usr/lib/jvm/java-6-openjdk*/jre/bin/java cx -> browser_openjdk,

Changing this to allows it to succeed:
/usr/lib/jvm/java-6-openjdk/jre/bin/java cx -> browser_openjdk,
/usr/lib/jvm/java-6-openjdk-{amd64,armel,armhf,i386,powerpc}/jre/bin/java cx -> browser_openjdk,

Interestingly, using:
/usr/lib/jvm/java-6-openjdk/jre/bin/java cx -> browser_openjdk,
/usr/lib/jvm/java-6-openjdk-*/jre/bin/java cx -> browser_openjdk,

also fails, which is curious as the directories with default-jre-headless installed are:
$ ls -1 /usr/lib/jvm/
default-java
java-1.6.0-openjdk
java-1.6.0-openjdk-amd64
java-6-openjdk
java-6-openjdk-amd64
java-6-openjdk-common
java-7-openjdk-amd64

But without are:
$ ls -1 /usr/lib/jvm/
java-1.6.0-openjdk-amd64
java-6-openjdk-amd64
java-6-openjdk-common
java-7-openjdk-amd64

/usr/lib/jvm/java-6-openjdk-*/ should work out to the same directories as /usr/lib/jvm/java-6-openjdk-{amd64,armel,armhf,common,i386,powerpc}/, but the parser doesn't like it.