I emerged the ibm-jdk-bin package. The env-update inserted a path to /opt/sun-jdk... into my profile.env. I took a look into the environment.bz2 of the ibm-jdk-bin package and there where many pathes containing sun instead of ibm. Reproducible: Always Steps to Reproduce: > ACCEPT_KEYWORDS="~x86" emerge ibm-jdk-bin > java Actual Results: -bash: java: command not found Expected Results: Some help about the usage of 'java' :).
did you source /etc/profile on that session?
Yes, but as I wrote, the env-update inserted pathes to the not existing /opt/sun-jdk... into my profile.env Therefore my PATH did contain the wrong pathes and 'java' could not be found.
I just did an emerge of that same package (but on ~ppc). And it is working fine for me. Did you use java-config to set the current system-vm: bash-2.05b# java-config --set-system-vm=ibm-jdk-bin-1.4.2 System Virtual Machine set You may want to update your enviroment by running: "/usr/sbin/env-update && source /etc/profile" bash-2.05b# /usr/sbin/env-update && source /etc/profile * Caching service dependencies... powermac bernard # java Usage: java [-options] class [args...] (to execute a class) or java [-jar] [-options] jarfile [args...] (to execute a jar file) where options include: -cp -classpath <directories and zip/jar files separated by :> set search path for application classes and resources -D<name>=<value> set a system property -verbose[:class|gc|jni] enable verbose output -version print product version -showversion print product version and continue -? -help print this help message -X print help on non-standard options -assert print help on assert options powermac bernard # Cheers, Bernard.
The java-config --set-system-vm=ibm-jdk-bin-1.4.2 worked. But I was a little confused since the emerge of the ibm-jdk-bin said: * ****************************************************** * After installing ibm-jdk-bin-1.4.2 this * was set as the default JVM to run. ... So I tried to reconstruct the situation again: - I unmerged ibm-jdk-bin - I merged sun-jdk (since this was the one I had previuosly installed) -> The VM was correctly set to sun-jdk now - I unmerged sun-jdk - I merged ibm-jdk-bin -> The VM was still set to sun-jdk, it was _not_ set to the ibm-jdk-bin Now I'm running sun-jdk again, because my browsers (galeon, mozilla, firefox) did not run with the ibm-jdk-bin :).
again did you env-update && source /etc/profile afther you merged a diffrend one/set a diffrend one? (you have to do this on every active shell you are logged into)
Yes, as I wrote in comment 2: env-update && source /etc/profile did not help. But this happens only when switching from Sun to IBM. When switching from IBM to Sun everything goes right.
so, what is your PATH set to when it break?
The PATH is set to /usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3:/opt/ati/bin:/opt/Acrobat5:/usr/X11R6/bin:/opt/sun-jdk-1.4.2.04/bin:/opt/sun-jdk-1.4.2.04/jre/bin:/opt/sun-jdk-1.4.2.04/jre/javaws:/usr/qt/3/bin:/usr/games/bin The JAVA_HOME is set to /opt/sun-jdk-1.4.2.04 which does not exist after I unmerged Sun's JDK and merged IBM's JDK.
Ok, sorry, this is indeed correct due to my local setup this didn't occure for me it should be fixed now