Can't Compile JNode in WinXP with JDK 1.6
Submitted by The Captain on Mon, 01/15/2007 - 02:25.
I have imported the project into Eclipse in the order they we're recommended to be.
When I run build.xml under JNode-All I get this error
C:\Documents and Settings\John Doe\workspace\JNode-All\build.xml:606: taskdef A class needed by
net.sourceforge.pmd.ant.PMDTask cannot be found: org/apche/tools/ant/Task
I'm using the JDK 1.6, and have PMD jars imported on Eclipse.
Any help?
- Login to post comments
Missing Jar File
**FIXED**
Got it to complie, but running into build errors
***FIXED***
BUILD FAILED
C:\JNode\all\build.xml:161: The following error occurred while executing this line:
C:\JNode\all\lib\jnode.xml:62: The following error occurred while executing this line:
C:\JNode\core\build.xml:104: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
Offending line: jnode.compile
Java JDK is located in C:\Program Files\Java
Makin' some progress.
Seem a classic bug I mentioned in IRC
build.xml is hardcoded for dir like "all", "core",... udner $jnode-root$, but after you import the sources, the all->JNode-All, core->JNode-Core,...
So, build say some missing...
I sugguest to making projects'name and build directories' name consistent in the svn source.
As a workaround, I sugguest your tweak the project name and dependencise to lowercase name - "all", "core"... (because build.xml is hardcoded, it is more painful to modify thins file)
Note: If you do this in Eclipse enviroment, plz disable the auto-build if your PC is not strong!
So do i need to move the
So do i need to move the source to C:\JNode ? and then re-import it into Eclipse. I have a P4 with 2GB, did take sometime to autobuild, but only on the core, everything else was like BAM, done.
what do you mean?
? what do you mean?
the roor directory of jnode is not important, C:\JNode is ok, D:\JNode is also ok, F:\xxxx\JNode is ok.
the Simplest way:
modify the dependencies at .classpath at each subdirectories under the root of jnode sources to lowercase name style:
JNode-All->all
JNode-Core->all
JNode-GUI->gui
...
then re-import the sources...ok
Sorry, also it says that it
Sorry, also it says that it can't find net.sourceforge.pmd.ant.PMDTask also.
works for me
the above way works for me. Sometimes it's hard to say the exact root of your errors if we can not see the real scenario.
I can send you my project setting file to you if you like. However, it is still hard to say they will work fine for you:)
Well, I just checked out
Well, I just checked out the SVN and well have an update once I get home and re-import it back into eclipse and try to compile.