| Summary: | dev-java/ant-nodeps-1.8.1 fails to build: The javac executable was not found in the Java path | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | balrok <der-coole-carl> |
| Component: | [OLD] Java | Assignee: | Java team <java> |
| Status: | RESOLVED INVALID | ||
| Severity: | blocker | CC: | ago, der-coole-carl |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
balrok
2010-09-12 16:35:59 UTC
On my system, work fine, isn't a general problem: >>> Emerging (2 of 2) dev-java/ant-nodeps-1.8.1 * apache-ant-1.8.1-src.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * ant-1.8.1-gentoo.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * CPV: dev-java/ant-nodeps-1.8.1 * REPO: gentoo * USE: elibc_glibc kernel_linux userland_GNU x86 * Using: sun-jdk-1.6 >>> Unpacking source... >>> Unpacking apache-ant-1.8.1-src.tar.bz2 to /var/tmp/portage/dev-java/ant-nodeps-1.8.1/work >>> Unpacking ant-1.8.1-gentoo.tar.bz2 to /var/tmp/portage/dev-java/ant-nodeps-1.8.1/work >>> Source unpacked in /var/tmp/portage/dev-java/ant-nodeps-1.8.1/work >>> Compiling source in /var/tmp/portage/dev-java/ant-nodeps-1.8.1/work/apache-ant-1.8.1 ... Rewriting attributes Rewriting ./build.xml * Disabling all optional ANT_TASKS Buildfile: /var/tmp/portage/dev-java/ant-nodeps-1.8.1/work/apache-ant-1.8.1/build.xml check_for_optional_packages: prepare: [mkdir] Created dir: /var/tmp/portage/dev-java/ant-nodeps-1.8.1/work/apache-ant-1.8.1/build [mkdir] Created dir: /var/tmp/portage/dev-java/ant-nodeps-1.8.1/work/apache-ant-1.8.1/build/classes [mkdir] Created dir: /var/tmp/portage/dev-java/ant-nodeps-1.8.1/work/apache-ant-1.8.1/build/lib [copy] Copying 7 files to /var/tmp/portage/dev-java/ant-nodeps-1.8.1/work/apache-ant-1.8.1/build/classes [copy] Copying 2 files to /var/tmp/portage/dev-java/ant-nodeps-1.8.1/work/apache-ant-1.8.1/build/classes build-nodeps: [javac.ant] Compiling 162 source files to /var/tmp/portage/dev-java/ant-nodeps-1.8.1/work/apache-ant-1.8.1/build/classes jars-prep: [copy] Copying 2 files to /var/tmp/portage/dev-java/ant-nodeps-1.8.1/work/apache-ant-1.8.1/build [copy] Copying 1 file to /var/tmp/portage/dev-java/ant-nodeps-1.8.1/work/apache-ant-1.8.1/build jar-nodeps: [jar] Building jar: /var/tmp/portage/dev-java/ant-nodeps-1.8.1/work/apache-ant-1.8.1/build/lib/ant-nodeps.jar BUILD SUCCESSFUL Total time: 9 seconds >>> Source compiled. >>> Test phase [not enabled]: dev-java/ant-nodeps-1.8.1 >>> Install ant-nodeps-1.8.1 into /var/tmp/portage/dev-java/ant-nodeps-1.8.1/image/ category dev-java >>> Completed installing ant-nodeps-1.8.1 into /var/tmp/portage/dev-java/ant-nodeps-1.8.1/image/ >>> Installing (2 of 2) dev-java/ant-nodeps-1.8.1 * checking 4 files for package collisions --- /usr/ --- /usr/share/ --- /usr/share/ant/ --- /usr/share/ant/lib/ >>> /usr/share/ant/tasks-1.8.1/ >>> /usr/share/ant/tasks-1.8.1/ant-nodeps >>> /usr/share/ant-nodeps/ >>> /usr/share/ant-nodeps/lib/ >>> /usr/share/ant-nodeps/lib/ant-nodeps.jar >>> /usr/share/ant-nodeps/package.env >>> /usr/share/ant/lib/ant-nodeps.jar -> /usr/share/ant-nodeps/lib/ant-nodeps.jar >>> Recording dev-java/ant-nodeps in "world" favorites file... * Messages for package dev-java/ant-core-1.8.1: * The way of packaging ant in Gentoo has changed significantly since * the 1.7.0 version, For more information, please see: * http://www.gentoo.org/proj/en/java/ant-guide.xml * * Since 1.7.1, the ant-tasks meta-ebuild has been removed and its USE * flags have been moved to dev-java/ant. Paste your: java-config -L hello - sorry for the late response i think i didn't received any mail about this bug.. thats the not working java-config: The following VMs are available for generation-2: 1) IcedTea6-bin 1.8.1 [icedtea6-bin] 2) Sun JDK 1.6.0.20 [sun-jdk-1.6] *) Sun JRE 1.6.0.20 [sun-jre-bin-1.6] i switched to number 2 (JDK) and now it works.. sorry to bother you.. but i'm no java-enthusiast so i realy don't know the point behind those 3 options edit: forgot to mention, that i installed the JDK (manually) only today.. but without java-config -S 2 it also printed me that error (In reply to comment #3) > edit: forgot to mention, that i installed the JDK (manually) only today.. but > without java-config -S 2 it also printed me that error > I have the same problem. Brand new stable install. there is difference between JRE and JDK. JRE is Java Runtime Engine, that is version just for running Java applications, but not for compilation. JDK is Java Development Kit, that is release for Java development and it also contains javac which is used for Java code compilation. so to compile Java packages, you need JDK, you cannot use JRE. it's also obvious from this output: Perhaps JAVA_HOME does not point to the JDK. It is currently set to "/opt/sun-jre-bin-1.6.0.20" so the solution is to set your system-vm to JDK, not JRE. for details you can also see "eselect java-vm" output. |