package org.jdom doesn't exist

Sorry, I am not quite good in Java or its tools :-)

I've generated plugin skeleton from http://svn.jetbrains.org/teamcity/plugins/template-plugin/templateProject/
Just trying to implement MainConfig Processor in ServerListener. When I am adding readFrom (org.jdom.Element rootElement) function build fails with can't find org.jdom package. I am just not sure where to fix classpath. lib-compile subfolder exist, but <myproject>.xml file has some strange entries:

  <property name="javac2.home" value="${idea.home}/lib"/>
  <path id="javac2.classpath">
    <pathelement location="${javac2.home}/javac2.jar"/>
        <pathelement location="${javac2.home}/jdom.jar"/>
    <pathelement location="${javac2.home}/asm.jar"/>
    <pathelement location="${javac2.home}/asm-commons.jar"/>
  </path>


There are no such files in ${idea.home}/lib (they only exist in ${idea.home}/buildAgent/lib). Anyway, if I change javac2.home property to <property name="javac2.home" value="${basedir}/lib-compile"/> I still get the same package not found error

1 comment
Comment actions Permalink

Dmitri,

> When I am adding readFrom (org.jdom.Element rootElement) function build fails with can't find org.jdom package.
Do you use IDEA to develop the plugin?
Does hte project builds OK in IDEA?

If no - you probably need to add the necesary libraries into module libraries.

If yes and the error only occurs when running Ant build from console, then you need to regenerate Ant build script from the IDEA's Build > Generate Ant Build menu.

idea.home should actually point to IntelliJ IDEA home.

Seems, the you need to do more Java-related housekeeping.
If you do find what seems to be not Java, but TeamCity-related, please post more details with the changed project source code and the exact output that you get.

0

Please sign in to leave a comment.