Red Hat Bugzilla – Bug 813539
/usr/bin/thermostat-client has hard coded paths to JVM
Last modified: 2012-05-08 00:17:00 EDT
Description of problem:
/usr/bin/thermostat-client has hard coded path JAVA=/usr/lib/jvm/java-1.7.0-openjdk-184.108.40.206/jre/bin/java
However the on my system the latest openjdk on F17 is installed in /usr/lib/jvm/java-1.7.0-openjdk-220.127.116.11.x86_64/jre/bin/java
To fix it would be most likely best to use the system symlinks, for example the /usr/lib/jvm/java-1.7.0/bin/java
Another bug is that the script refers to hardcoded tools.jar location too. It should use the $JAVA defined earlier.
Third bug is that script requires tools.jar on the classpath, which is not included in the openjdk-1.7.0 package but in the openjdk-1.7.0-devel package only. Thus the rpm needs to depend on either java-1.7.0-devel or java-1.7.0-openjdk-devel instead of the plain java-1.7.0.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. install openjdk-1.7.0
2. install thermostat
3. run thermostat-client
Fails to find java
thermostat-0.2-0.20120506hg2140a7c81a4b.fc17 has been submitted as an update for Fedora 17.
thermostat-0.2-0.20120506hg2140a7c81a4b.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.