Compiling forms from Ant
Is anyone else having problems compiling .form files for IDEA using 2008
and the new 2013? I posted on this the other day but no one replied, 2002
and earlier compile/build fine, but under 2008 and 2013 I get:
java.lang.NoSuchMethodError: com.intellij.uiDesigner.lw.LwRootContainer.read(Lorg/jdom/Element;Lcom/intellij/uiDesigner/lw/PropertiesProvider;)V
at com.intellij.uiDesigner.compiler.Utils.getRootContainer(Unknown Source)
at com.intellij.uiDesigner.ant.Javac2.compile(Unknown Source)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
at org.apache.tools.ant.Main.runBuild(Main.java:609)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
请先登录再写评论。
Hello, Mark!
In 2002 it work perfect. But since 2008 has troubles...
It solved by adding java2.jar, jdom.jar and bcel.jar to ANT Additional
Classpath
Thanks!
Alexey Efimov - Java Developer
Tops BI
http://www.topsbi.com
Alexey Efimov wrote:
Cool, that works from within IDEA, but not when running Ant from the
command line, or from say Anthill.
I tried including those jars in the classpath for the task, and my
compile but I still seem to get the error from there.
Odd.
MD> Cool, that works from within IDEA, but not when running Ant from the
MD> command line, or from say Anthill.
MD> I tried including those jars in the classpath for the task, and my
MD> compile but I still seem to get the error from there.
Try to add those jars to ANT execution classpath
Alexey Efimov - Java Developer
Tops BI
http://www.topsbi.com
Alexey Efimov wrote:
Hmmm, I'd rather not. I install Ant via the JPackage RPM and don't
really want to go messing with it. Although, I could modify my IDEA RPM
packages to copy those files into the Ant directories... mmm.
Ah well, I'll look at it in the morning, time for sleepage just now.