Stefan Krüger wrote:
>
> (/etc/env.d/java/20blackdown-jdk-1.4.2.02)
> 
> So far so good, but sudo-ing as user gets me the wrong (Blackdown) JRE:
> 
>  [EMAIL PROTECTED] ~ $ sudo java -version
>   java version "1.4.2-02"
>   Java(TM) 2 Runtime Environment, Standard Edition (build
> Blackdown-1.4.2-02)
>   Java HotSpot(TM) Client VM (build Blackdown-1.4.2-02, mixed mode)
> 
> Any ideas?
> 

Using sudo you will not change the environment and our vm switching is
currently done via environment variables like PATH and JAVA_HOME which
means that sudo will give you the same vm as you have as a user.

java-config-2.0 does works differently and does not rely on environment
variables any more. In the future you might be better server by the
gentoo-java mailing list when you have java specific questions.

Regards,
Petteri

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to