AspectJ build issue

30 views
Skip to first unread message

Anurag

unread,
Nov 29, 2010, 2:34:30 PM11/29/10
to iBugs
Hi All:

I am quite new to iBugs and i have been facing few issues while
trying to build AspectJ dataset. After i checkout the pre-fix and post-
fix code, i run "ant -DfixId=28919 -Dtag=pre-fix buildversion", but it
seems to fail with the message:


BUILD FAILED
.../ibugs/aspectj-1.3/build.xml:14: Problem: failed to create task or
type classpath
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken
place.

If i go up in the messages, i also see messages related to not being
able to find JDK:

....
libJars=[]][]: Unable to find a javac compiler;
[exec] com.sun.tools.javac.Main is not on the classpath.
[exec] Perhaps JAVA_HOME does not point to the JDK
[exec] Unable to find a javac compiler;
[exec] com.sun.tools.javac.Main is not on the classpath.
[exec] Perhaps JAVA_HOME does not point to the JDK
[exec] at
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactor
y.getCompiler(CompilerAdapterFactory.java:139)

I have JDK at /usr/bin/java and in the properties.xml, JAVA_HOME is
set to /usr. However, i am using jdk-1.6, which i see might be an
issue while compiling AspectJ. Is that the real problem or you think
there is something wrong in my settings?

Francisco Servant

unread,
Nov 29, 2010, 4:55:04 PM11/29/10
to iBugs
Yes, for compiling AspectJ correctly, you need to use the JDK 1.4.2.
Once you have downloaded it for your system, set JAVA_HOME in your
properties.xml to the folder where you downloaded it.
Reply all
Reply to author
Forward
0 new messages