Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 161217 - /etc/java-config-2/current-system-vm layout changes from JRE to JDK
Summary: /etc/java-config-2/current-system-vm layout changes from JRE to JDK
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-09 22:29 UTC by Régis Décamps
Modified: 2007-01-09 23:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Régis Décamps 2007-01-09 22:29:33 UTC
I expect /etc/java-config-2/current-system-vm to point to the current system VM.

In particular, I'd like the benefits of java-config-2 to update my firefox plugin.
I have made a simlink as follow 
ln -s /etc/java-config-2/current-system-vm/plugin/i386/ns7/libjavaplugin_oji.so /opt/firefox/plugins/

This link works if I select sun-jre-1.4, sun-jre-1.5 or sun-jre-1.6
But is I select sun-jdk-1.4, sun-jdk-1.5 or sun-jdk-1.6, the link is broke.

Indeed, if java-config-2 -S is called with a JRE, the jre is in /etc/java-config-2/current-system-vm.
Whereas if java-config-2 -S is called with a JDK, the jre is in /etc/java-config-2/current-system-vm/jre



Reproducible: Always

Steps to Reproduce:
1. ln -s /etc/java-config-2/current-system-vm/plugin/i386/ns7/libjavaplugin_oji.so /opt/firefox/plugins/
2. eselect -S sun-jre-1.5
3. ls -al /opt/firefox/plugins/ # link OK
4. eselect -S sun-jdk-1.5
5. ls -al /opt/firefox/plugins/ # link broken


Expected Results:  
I think the jre should always be in current-system-vm/jre, should a symlink be created for that to happen.
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-01-09 23:51:48 UTC
We have eselect java-nsplugin in place for this.