when I try to emerge any java jre (sun-1.4, sun-1.5, blackdown-1.4) I get an error similar to the following: javac not found at /opt/blackdown-jre-1.4.2.03/bin/javac or /opt/blackdown-jre-1.4.2.03/jre/bin/javac javadoc not found at /opt/blackdown-jre-1.4.2.03/bin/javadoc or /opt/blackdown-jre-1.4.2.03/jre/bin/javadoc jar not found at /opt/blackdown-jre-1.4.2.03/bin/jar or /opt/blackdown-jre-1.4.2.03/jre/bin/jar rmic not found at /opt/blackdown-jre-1.4.2.03/bin/rmic or /opt/blackdown-jre-1.4.2.03/jre/bin/rmic THIS SYSTEM VM IS NOT SUFFICIENT, REQUIRED BINARIES WERE NOT FOUND these are the files that got installed: /opt/blackdown-jre-1.4.2.03/bin/java /opt/blackdown-jre-1.4.2.03/bin/ktab /opt/blackdown-jre-1.4.2.03/bin/orbd /opt/blackdown-jre-1.4.2.03/bin/rmid /opt/blackdown-jre-1.4.2.03/bin/keytool /opt/blackdown-jre-1.4.2.03/bin/kinit /opt/blackdown-jre-1.4.2.03/bin/klist /opt/blackdown-jre-1.4.2.03/bin/tnameserv /opt/blackdown-jre-1.4.2.03/bin/servertool /opt/blackdown-jre-1.4.2.03/bin/java_vm /opt/blackdown-jre-1.4.2.03/bin/rmiregistry /opt/blackdown-jre-1.4.2.03/bin/policytool the emerge completes, but some key binaries aren't there (jar, javac)
You can't use JRE to compile stuff, you need JDK for that. There are no missing binaries here. Not a bug, closing.
Oh sorry, you're right, all I wanted was the jre for this particular machine and that's what I got. I guess I got confused, as I develop in java at work and this huge warning message mentioning that javac was missing immediately caught my eye as I'm not used to using java without javac. Anyways, the error message does seem a bit much though? Kind of makes you think that something is wrong? Not to mention, that "THIS SYSTEM VM IS NOT SUFFICIENT, REQUIRED BINARIES WERE NOT FOUND" is totally inaccurate. It IS sufficient. And no, those binaries (javac, etc...) are not required.
No, the message is just fine to point people to the fact that you won't be able to compile anything against JREs.
"No, the message is just fine to point people to the fact that you won't be able to compile anything against JREs." C'mon! get with it, are you for real? I have been using gentoo for 3 years and I'm tired of putting up with this crap. Does this: "THIS SYSTEM VM IS NOT SUFFICIENT, REQUIRED BINARIES WERE NOT FOUND" translate/imply/mean/signify this: "you won't be able to compile anything" Please tell me how does "THIS SYSTEM VM IS NOT SUFFICIENT, REQUIRED BINARIES WERE NOT FOUND" "point people to the fact that you won't be able to compile anything," but that you don't need to worry, because everything is going to be OK. Here's the full example using java-config only: thinkpad bin # java-config -L [sun-jre-bin-1.5.0.06] "Sun JRE 1.5.0.06" (/etc/env.d/java/20sun-jre-bin-1.5.0.06) * thinkpad bin # java-config -S sun-jre-bin-1.5.0.06 javac not found at /opt/sun-jre-bin-1.5.0.06/bin/javac or /opt/sun-jre-bin-1.5.0.06/jre/bin/javac javadoc not found at /opt/sun-jre-bin-1.5.0.06/bin/javadoc or /opt/sun-jre-bin-1.5.0.06/jre/bin/javadoc jar not found at /opt/sun-jre-bin-1.5.0.06/bin/jar or /opt/sun-jre-bin-1.5.0.06/jre/bin/jar rmic not found at /opt/sun-jre-bin-1.5.0.06/bin/rmic or /opt/sun-jre-bin-1.5.0.06/jre/bin/rmic THIS SYSTEM VM IS NOT SUFFICIENT, REQUIRED BINARIES WERE NOT FOUND System Virtual Machine set You may want to update your enviroment by running: "/usr/sbin/env-update && source /etc/profile" Sorry for flaming, but after two INVALIDs I get a bit annoyed.
Calm down, really...
> THIS SYSTEM VM IS NOT SUFFICIENT, REQUIRED BINARIES WERE NOT FOUND Should only happen if you try to set jre/jdk as system VM, which is used for building java packages, thus must have javac and stuff... The problem is that emerging a VM sometimes tries to set it as sytem VM, but this should be fixed in the new system I think. I agree the message could be more verbose though.
The new java-config that is in the works is more verbose that you probably don't want to set a JRE as the system vm. I can look into patching the old version to use the same message.
(In reply to comment #7) > The new java-config that is in the works is more verbose that you probably > don't want to set a JRE as the system vm. I can look into patching the old > version to use the same message. > Please do. This is extremely annoying for users who do not compile Java programs and only want to have Java support in their OS. I agree with David Grant. This is ridiculous. I spent 30 minutes trying to figure out what was wrong with the Gentoo Java User Guide to only find that this is a bug with java-config.
*** Bug 115345 has been marked as a duplicate of this bug. ***
I think this was solved recently as JRE's are no longer visible to java-config-1 (you can set only JDK as generation-1 VM) and java-config-2 doesn't produce these warnings, as gen-2 system VM isn't used for emerge and thus doesn't have to be a JDK.
Ah, actually java-config-2 gives some warning: !!! WARNING: The specified VM is a JRE! It is suggested you use a JDK! Maybe not needed at all, but doesn't hurt as much as the java-config-1 warning... which is effectively gone.
This should be fixed in recent releases of 1.3.x.