com.intellij.ant.Javac2 - Class not found

Hi,

   I am getting Class not found error in build.xml for

<taskdef name="javac2" classname="com.intellij.ant.Javac2"/>

  I am using Intelli J 13.1 on Mac OS X.

  Any help is much appreciated.

Thanks and Regards,
Sri.

2 comments
Comment actions Permalink

Hello.

Please try something like this:

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-all.jar"/>
  <pathelement location="${javac2.home}/jgoodies-forms.jar"/>
</path>
<taskdef name="javac2" classname="com.intellij.ant.Javac2" classpathref="javac2.classpath"/>


(It is extract from an ant build generated by IDEA, you can use it for reference.)

Regards,
Alexander.

0
Comment actions Permalink

Thanks Alexander, that fixed the issue.

Regards,
Sri.

0

Please sign in to leave a comment.