Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132209 - java-config: Unfriendly error message
Summary: java-config: Unfriendly error message
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Lowest enhancement (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 115345 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-03 23:45 UTC by David Grant
Modified: 2006-09-05 08:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Grant 2006-05-03 23:45:08 UTC
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)
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-05-04 00:25:40 UTC
You can't use JRE to compile stuff, you need JDK for that. There are no missing binaries here.

Not a bug, closing.
Comment 2 David Grant 2006-05-04 00:55:59 UTC
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.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-05-04 00:57:45 UTC
No, the message is just fine to point people to the fact that you won't be able to compile anything against JREs.
Comment 4 David Grant 2006-05-04 01:13:37 UTC
"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.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-05-04 01:34:46 UTC
Calm down, really...

Comment 6 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-05-04 11:35:48 UTC
> 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.
Comment 7 Josh Nichols (RETIRED) gentoo-dev 2006-05-04 12:27:30 UTC
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.
Comment 8 Sean Smith 2006-07-22 11:24:52 UTC
(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.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-09-04 03:23:24 UTC
*** Bug 115345 has been marked as a duplicate of this bug. ***
Comment 10 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-09-04 04:05:22 UTC
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.
Comment 11 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-09-04 04:10:48 UTC
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.
Comment 12 Josh Nichols (RETIRED) gentoo-dev 2006-09-05 08:10:46 UTC
This should be fixed in recent releases of 1.3.x.