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-

-classpath /usr/lib/jvm/java-6-sun- ...

Changing JDK Jar Files Patterns doesn't seem to make difference.

Platform is Ubuntu 8.10, Sun JDK, TeamCity 4.0

Any workarounds ?

Dragisa Krsmanovic

Comment actions Permalink


  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/
  file, or via "Properties and Environment Variables" section.


Comment actions Permalink


I found this after I posted my message. I think the problem is related to

See thread



Please sign in to leave a comment.