Summary: | java-config does not set user vm correctly | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Mike Hostetler <thehaas> |
Component: | [OLD] Core system | Assignee: | Java team <java> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 1.4_rc1 | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 19032 |
Description
Mike Hostetler
2002-10-29 08:31:37 UTC
Have you run: $ env-update $ source /etc/profile Otherwise the scirpts in /etc/env.d won't point to the new jvm you want to use You should run env-update after java-config --set-user-vm=xx and login again. I have the same problem as mikeh. Although this bug should be resolved for years it seems that it isnt. I have 3 jdks installed and have chosen sun-jdk-1.4.2.04 as the system VM. when i logon as regular user, change to to blackdown-jdk-1.4.1 or sun-jdk-1.5.0, su to root and run env-update and then relog as user the jdk is not changed. The file ~/.gentoo/java was updated and shows the correct entries but it is somehow not integrated into the shell (bash btw) You must manually add ~/.gentoo/java to the end of your .bashrc: [ -f $HOME/gentoo/java ] && source $HOME/.gentoo/java This bug is still open? A clearer fix would be to make the Java executable JAVA_HOME/bin/java. IOW: JAVA_HOME=/path/to/jdk PATH=$PATH:$JAVA_HOME/bin |