1 |
Peter wrote: |
2 |
> While not the Java expert, I wanted to take a look at the 1.5 JRE for use |
3 |
> with a browser. Following the very clear directions presented, I emerged |
4 |
> the 1.5 JRE and then: |
5 |
> |
6 |
> # java-config -S sun-jdk-1.4.2.10 |
7 |
> |
8 |
> then as user |
9 |
> |
10 |
> $ java-config -s sun-jre-bin-1.5.0.06-r2 |
11 |
> |
12 |
> Then I sourced the ~/.gentoo/java-env file as instructed. |
13 |
> |
14 |
> When I fired up firefox, the 1.4.2.10 java vm was shown as used when I did |
15 |
> about:plugins. |
16 |
> |
17 |
|
18 |
Firefox doesn't care about any java environment variables. It only cares |
19 |
about the file /usr/lib/nsbrowser/plugins/javaplugin.so . In gentoo, |
20 |
this file is just a symlink to some actual plugin file in the VM |
21 |
installed (for example |
22 |
/opt/sun-jdk-1.5.0.06/jre/plugin/i386/ns7/libjavaplugin_oji.so). This |
23 |
symlink is created by emerging a JRE/JDK with "nsplugin" USE flag. The |
24 |
last VM installed with this USEflag takes this symlink. Currently |
25 |
there's no other way to change it except manual editing. Just recently |
26 |
on IRC I've suggested an eselect module for that, or to synchronize this |
27 |
with java-config (eselect java) VM changing. If you want to not depend |
28 |
on which VM was emerged last, emerge only the desired one with USE |
29 |
"nsplugin" (by editing package.use). |
30 |
|
31 |
Caster |
32 |
-- |
33 |
gentoo-java@g.o mailing list |