Unix Technical Forum

Sun Java VM setting won't stick

This is a discussion on Sun Java VM setting won't stick within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> I did 'emerge sun-jdk' and got 1.4.2.02 installed. However, the java-config tool doesn't seem to be able to change ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 05:46 AM
Wendy S
 
Posts: n/a
Default Sun Java VM setting won't stick


I did 'emerge sun-jdk' and got 1.4.2.02 installed. However, the java-config
tool doesn't seem to be able to change what vm I'm using. Any ideas?

wendy@nectaris wendy $ java-config --list-available-vms
[blackdown-jdk-1.4.1] Blackdown JDK 1.4.1 (/etc/env.d
java/20blackdown-jdk-1.4.1) ()
[sun-jdk-1.4.2.02] Sun JDK 1.4.2.02 (/etc/env.d/java/20sun-jdk-1.4.2.02)
(selected)

wendy@nectaris wendy $ java-config --set-user-vm=sun-jdk-1.4.2.02
Now using Sun JDK 1.4.2.02 (/etc/env.d/java/20sun-jdk-1.4.2.02)
* You should login again to make your java-config changes available
* Or, you can type 'source ~/.gentoo/java-env' in your current session.

wendy@nectaris wendy $ source ~/.gentoo/java-env

wendy@nectaris wendy $ java -version
java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.1-01)
Java HotSpot(TM) Client VM (build Blackdown-1.4.1-01, mixed mode)
wendy@nectaris wendy $

--
Wendy in Chandler, AZ
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 05:46 AM
walt
 
Posts: n/a
Default Re: Sun Java VM setting won't stick

Wendy S <wendywds@hotmail.com> writes:

> I did 'emerge sun-jdk' and got 1.4.2.02 installed. However, the java-config
> tool doesn't seem to be able to change what vm I'm using. Any ideas?
>
> wendy@nectaris wendy $ java-config --list-available-vms
> [blackdown-jdk-1.4.1] Blackdown JDK 1.4.1 (/etc/env.d
> java/20blackdown-jdk-1.4.1) ()
> [sun-jdk-1.4.2.02] Sun JDK 1.4.2.02 (/etc/env.d/java/20sun-jdk-1.4.2.02)
> (selected)
>
> wendy@nectaris wendy $ java-config --set-user-vm=sun-jdk-1.4.2.02
> Now using Sun JDK 1.4.2.02 (/etc/env.d/java/20sun-jdk-1.4.2.02)
> * You should login again to make your java-config changes available
> * Or, you can type 'source ~/.gentoo/java-env' in your current session.


I just noticed that my java-env file was two versions out of date, so I
did it again and found that the new environment file is named 'java'
not 'java-env'.

What do you have in your ~/.gentoo directory?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 05:46 AM
Wendy S
 
Posts: n/a
Default Re: Sun Java VM setting won't stick

walt wrote:
> I just noticed that my java-env file was two versions out of date, so I
> did it again and found that the new environment file is named 'java'
> not 'java-env'.
> What do you have in your ~/.gentoo directory?


Only a java-env file dated today. Curiously, it's fine now. I've logged
out and back in since then...

wendy@nectaris .gentoo $ java -version
java version "1.4.2_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03)
Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode)
wendy@nectaris .gentoo $

--
Wendy in Chandler, AZ
http://www.pbase.com/wendywds
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:04 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com