If I run Inspections runner I get this error:
tools.jar is not in IDEA classpath. Please ensure JAVA_HOME points to JDK rather than JRE
It's looking for tools.jar in JAVA_HOME/jre/lib but tools.jar is in JAVA_HOME/lib
Inspection output: /usr/lib/jvm/java-6-sun-220.127.116.11/jre/bin/java
-classpath /usr/lib/jvm/java-6-sun-18.104.22.168/jre/lib/tools.jar: ...
Changing JDK Jar Files Patterns doesn't seem to make difference.
Platform is Ubuntu 8.10, Sun JDK 22.214.171.124, TeamCity 4.0
Any workarounds ?