JBuilder 9 (project JDK=1.3, ant JDK=project JDK, ant task fails)


2003-10-09 12:47:00 AM
jbuilder7
Hi,
I'm using JBuilder 9 for J2EE development, deploying to a WLS6.1 appserver instance running on JDK1.31. I have my JB9 IDE configured to point to my JDK1.31 installation, and I have JB9's ant dialog configured to "use project JDK"=true. When I run my project's ant task from JB9, I get the following error:
[javac] Compiler internal error.
[javac] java.lang.NoSuchMethodError
[javac] at com.sun.tools.javac.v8.code.ClassReader.<clinit>(ClassReader.java:30)
[javac] at com.borland.javac.javamaker.Main.compile(Unknown Source)
[javac] at com.borland.javac.javamaker.Main.main(Unknown Source)
[javac] at com.borland.jbuilder.ant.compiler.Bmj.a(Unknown Source)
[javac] at com.borland.jbuilder.ant.compiler.Bmj.execute(Unknown Source)
[javac] at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842)
[javac] at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
[javac] at org.apache.tools.ant.Task.perform(Task.java:341)
[javac] at org.apache.tools.ant.Target.execute(Target.java:309)
[javac] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[javac] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[javac] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
[javac] at org.apache.tools.ant.Task.perform(Task.java:341)
[javac] at org.apache.tools.ant.Target.execute(Target.java:309)
[javac] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[javac] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[javac] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
[javac] at org.apache.tools.ant.Main.runBuild(Main.java:609)
[javac] at org.apache.tools.ant.Main.start(Main.java:196)
[javac] at org.apache.tools.ant.Main.main(Main.java:235)
Error executing Ant: C:/bea/jdk131/bin/java -Dbuild.compiler=com.borland.jbuilder.ant.compiler.Bmj -Xbootclasspath:C:\JBuilder9\lib\javac.jar;C:\JBuilder9\lib\jbuilder.jar;C:\bea\jdk131\jre\lib\i18n.jar;C:\bea\jdk131\jre\lib\jaws.jar;C:\bea\jdk131\jre\lib\rt.jar;C:\bea\jdk131\jre\lib\sunrsasign.jar;C:\bea\jdk131\lib\dt.jar;C:\bea\jdk131\lib\htmlconverter.jar;C:\bea\jdk131\lib\tools.jar;C:\JBuilder9\lib\ant.jar;C:\JBuilder9\lib\optional.jar;C:\JBuilder9\lib\jbuilder.jar;C:\JBuilder9\lib\xercesImpl.jar;C:\JBuilder9\lib\xmlParserAPIs.jar org.apache.tools.ant.Main -buildfile build.xml
Am I supposed to set an alternate -Dbuild.compiler value when using JB9(defaultJDK=1.4) to perform ant tasks configured for JDK1.3 projects? This "no such method" error obviously results from a 1.3 misconfig where JB9 is trying to do something in the build that is JDK1.4 compliant.
Thanks
Ben