Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57721 - Emerge of ibm-jdk-bin 1.4.2 sets wrong path in environment
Summary: Emerge of ibm-jdk-bin 1.4.2 sets wrong path in environment
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-20 06:04 UTC by Tilo Prütz
Modified: 2004-07-27 08:35 UTC (History)
0 users

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 Tilo Prütz 2004-07-20 06:04:19 UTC
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' :).
Comment 1 Thomas Matthijs (RETIRED) gentoo-dev 2004-07-20 06:12:30 UTC
did you source /etc/profile on that session?
Comment 2 Tilo Prütz 2004-07-20 07:04:43 UTC
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.
Comment 3 Bernard Niset 2004-07-20 09:10:43 UTC
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.
Comment 4 Tilo Prütz 2004-07-20 12:10:55 UTC
 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 :).
Comment 5 Thomas Matthijs (RETIRED) gentoo-dev 2004-07-23 14:30:04 UTC
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)
Comment 6 Tilo Prütz 2004-07-25 10:11:20 UTC
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.
Comment 7 Thomas Matthijs (RETIRED) gentoo-dev 2004-07-27 07:11:46 UTC
so, what is your PATH set to when it break?
Comment 8 Tilo Prütz 2004-07-27 07:21:54 UTC
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.
Comment 9 Thomas Matthijs (RETIRED) gentoo-dev 2004-07-27 08:35:53 UTC
Ok, sorry, this is indeed correct
due to my local setup this didn't occure for me

it should be fixed now