Inspections runner not finding tools.jar
Hi all,
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-1.6.0.10/jre/bin/java
...
-classpath /usr/lib/jvm/java-6-sun-1.6.0.10/jre/lib/tools.jar: ...
Changing JDK Jar Files Patterns doesn't seem to make difference.
Platform is Ubuntu 8.10, Sun JDK 1.6.0.10, TeamCity 4.0
Any workarounds ?
Thanks,
Dragisa Krsmanovic
Please sign in to leave a comment.
Hello,
Could you please attach a screenshot of your Build Runner settings, with expanded
section for JDK Jar Files Patterns.
Please also note, that TeamCity Inspection runner uses JAVA_HOME environment variable
to run the build itself, and it should be configured independently from runner settings.
You should specify JAVA_HOME (and point it to JDK) either via buildAgent/conf/buildAgent.properties
file, or via "Properties and Environment Variables" section.
Regards,
KIR
Kirill,
I found this after I posted my message. I think the problem is related to http://jetbrains.net/tracker/issue/TW-5298
See thread http://www.jetbrains.net/devnet/message/5216077#5216077
Dragisa