jancici Apprentice
Joined: 27 Jan 2004 Posts: 284 Location: Slovakia
|
Posted: Tue Jun 07, 2005 8:05 pm Post subject: switching between sun jdk 1.4.2 and 1.5 |
|
|
I would like to use sun-jdk 1.5 so I did install it. BUT in next update I did find out few problems because some of java programs/libraries couldn't compiled. I did read several threads in forums and I decided to have sun-jdk 1.4.2 for system wide and sun-jdk 1.5 for me for developing my porgrams.
so what I have :
Code: | java-config -L
[sun-jdk-1.5.0.03] "Sun JDK 1.5.0.03" (/etc/env.d/java/20sun-jdk-1.5.0.03) *
[sun-jdk-1.4.2.08] "Sun JDK 1.4.2.08" (/etc/env.d/java/20sun-jdk-1.4.2.08)
|
as root I have done this:
Code: | java-config -S sun-jdk-1.4.2.08 |
and as ordinary user I have done this:
Code: | java-config -s sun-jdk-1.5.0.03 |
so when I am emerging java programs/libraries it's okay, still using stable 1.4.2
BUT I am using gdm to login to gnome session, after that when I am starting, for example : netbeans using desktop icon, netbeans is started under sun-jdk 1.4.2.
when I did start terminal and chceck that, I did find out that something is wrong. so I did put following lines into ~/.bashrc
Code: | if [ -f $HOME/.gentoo/java ] ; then
. $HOME/.gentoo/java
fi
|
I did find out those lines in : ~/.gentoo/java-env
when I am using java in terminal it;s okay I am using sun-jdk 1.5
BUT still when starting netbeans using desktop icon it is starting under sun-jdk 1.4.2
please: what can be wrong? what should I check? thanks for any tip how to solve this, thanks |
|