Red Hat Bugzilla – Bug 480979
Eclipse JDT can't find javac for ant build
Last modified: 2009-01-26 10:56:15 EST
Description of problem:
Eclipse JDT can't find javac for ant build.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install eclispe-jdt
2. Import a Java project that has an ant build file
3. Try to run the ant build
[javac] Compiling 254 source files to /home/ben/workspace/mkgmap/build/classes
/home/ben/workspace/mkgmap/build.xml:46: 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.
It is currently set to "/usr/lib/jvm/java-1.6.0-openjdk-126.96.36.199/jre"
Total time: 591 milliseconds
The JDT should find javac.
After installing java-1.6.0-openjdk-devel the ant build worked. Perhaps eclipse-jdt should require java-1.6.0-openjdk-devel.
Yeah, we should definitely make JDT require the -devel package. I can't believe we've gone this long without it! Maybe it got removed accidentally.
I'll fix this right now.
Thanks Andrew! Cheers, Ben
I built this in rawhide the other day:
RPMs can be downloaded from here:
I'll probably wait until we have a higher priority issue to push an update to Fedora 10. Is that okay with you, Ben? I'll close this with resolution "rawhide" for now.
(In reply to comment #3)
> I'll probably wait until we have a higher priority issue to push an update to
> Fedora 10. Is that okay with you, Ben? I'll close this with resolution
> "rawhide" for now.
Since there is an easy fix, your plan seems good. Cheers, Ben