Red Hat Bugzilla – Bug 580478
OpenJDK .desktop files use /usr/bin/..., but these may be symlinks to executables from other JDKs
Last modified: 2012-01-06 11:58:29 EST
Description of problem:
$ grep ^Exec= /usr/share/applications/java-1.6.0-openjdk*.desktop
That looks correct, but the target files are managed by Alternatives, so they're symlinks to /etc/alternatives/jconsole and /etc/alternatives/policytool, and these are only symlinks to the OpenJDK jconsole and policytool when OpenJDK is configured as 'java'/'javac'. When e.g. the SUN JDK is set up, the SUN JDK jconsole or policytool are executed when the menu items are clicked.
The .desktop files should use full paths to the OpenJDK executables, ie. /usr/lib/jvm/java-1.6.0-openjdk/bin/jconsole and /usr/lib/jvm/java-1.6.0-openjdk/bin/policytool.
Version-Release number of selected component (if applicable):
The upstream bugzilla is at http://icedtea.classpath.org/bugzilla.
I do not want to add this to icedtera bugzilla. I want to repair this in its makefile. But as i walked through it, i wa snot able to find proper place.
Send to upstream: