* [gentoo-java] Sun Java JDK 1.4* and Sun Java JRE 1.5 issue
@ 2006-06-04 10:34 Peter
2006-06-04 20:13 ` Caster
0 siblings, 1 reply; 3+ messages in thread
From: Peter @ 2006-06-04 10:34 UTC (permalink / raw
To: gentoo-java
While not the Java expert, I wanted to take a look at the 1.5 JRE for use
with a browser. Following the very clear directions presented, I emerged
the 1.5 JRE and then:
# java-config -S sun-jdk-1.4.2.10
then as user
$ java-config -s sun-jre-bin-1.5.0.06-r2
Then I sourced the ~/.gentoo/java-env file as instructed.
When I fired up firefox, the 1.4.2.10 java vm was shown as used when I did
about:plugins.
Now, if I unmerge the jre, and emerge the 1.5 jdk and follow the
java-config steps above, about:plugins shows 1.5 being used for the user.
Only thing I can think of is that when I sourced the java-env file for the
JRE, the environment variable JDK_HOME still pointed to 1.4 (and correctly
so, since that is the only JDK). Perhaps that confused firefox?
Lastly, I removed all JDKs and just emerged 1.5-jre-bin and tested the
browser. Without a JDK installed, the browser did pick up the proper VM,
1.5 in this test. Of course, I had to reinstall the 1.4 jdk again.
If I did something wrong by installing a JRE, please advise. If you would
like me to do more testing or try something different, please let me know.
Maybe it's something as simple as needing to unser the JDK_HOME variable.
HTH
--
Peter
--
gentoo-java@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-java] Sun Java JDK 1.4* and Sun Java JRE 1.5 issue
2006-06-04 10:34 [gentoo-java] Sun Java JDK 1.4* and Sun Java JRE 1.5 issue Peter
@ 2006-06-04 20:13 ` Caster
2006-06-05 10:20 ` [gentoo-java] " Peter
0 siblings, 1 reply; 3+ messages in thread
From: Caster @ 2006-06-04 20:13 UTC (permalink / raw
To: gentoo-java
Peter wrote:
> While not the Java expert, I wanted to take a look at the 1.5 JRE for use
> with a browser. Following the very clear directions presented, I emerged
> the 1.5 JRE and then:
>
> # java-config -S sun-jdk-1.4.2.10
>
> then as user
>
> $ java-config -s sun-jre-bin-1.5.0.06-r2
>
> Then I sourced the ~/.gentoo/java-env file as instructed.
>
> When I fired up firefox, the 1.4.2.10 java vm was shown as used when I did
> about:plugins.
>
Firefox doesn't care about any java environment variables. It only cares
about the file /usr/lib/nsbrowser/plugins/javaplugin.so . In gentoo,
this file is just a symlink to some actual plugin file in the VM
installed (for example
/opt/sun-jdk-1.5.0.06/jre/plugin/i386/ns7/libjavaplugin_oji.so). This
symlink is created by emerging a JRE/JDK with "nsplugin" USE flag. The
last VM installed with this USEflag takes this symlink. Currently
there's no other way to change it except manual editing. Just recently
on IRC I've suggested an eselect module for that, or to synchronize this
with java-config (eselect java) VM changing. If you want to not depend
on which VM was emerged last, emerge only the desired one with USE
"nsplugin" (by editing package.use).
Caster
--
gentoo-java@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gentoo-java] Re: Sun Java JDK 1.4* and Sun Java JRE 1.5 issue
2006-06-04 20:13 ` Caster
@ 2006-06-05 10:20 ` Peter
0 siblings, 0 replies; 3+ messages in thread
From: Peter @ 2006-06-05 10:20 UTC (permalink / raw
To: gentoo-java
On Sun, 04 Jun 2006 22:13:24 +0200, Caster wrote:
snip...
>
> Firefox doesn't care about any java environment variables. It only cares
> about the file /usr/lib/nsbrowser/plugins/javaplugin.so . In gentoo,
> this file is just a symlink to some actual plugin file in the VM
> installed (for example
> /opt/sun-jdk-1.5.0.06/jre/plugin/i386/ns7/libjavaplugin_oji.so). This
> symlink is created by emerging a JRE/JDK with "nsplugin" USE flag. The
> last VM installed with this USEflag takes this symlink. Currently
> there's no other way to change it except manual editing. Just recently
> on IRC I've suggested an eselect module for that, or to synchronize this
> with java-config (eselect java) VM changing. If you want to not depend
> on which VM was emerged last, emerge only the desired one with USE
> "nsplugin" (by editing package.use).
>
> Caster
Ah, so it's sort of a last-in vm get's the link deal. Thanks for
explaining that. It's a lot simpler than I was making it!
--
Peter
--
gentoo-java@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-06-05 10:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-04 10:34 [gentoo-java] Sun Java JDK 1.4* and Sun Java JRE 1.5 issue Peter
2006-06-04 20:13 ` Caster
2006-06-05 10:20 ` [gentoo-java] " Peter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox