From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Fmz0g-0003dQ-Ee for garchives@archives.gentoo.org; Sun, 04 Jun 2006 20:15:42 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.6) with SMTP id k54KDQMh018488; Sun, 4 Jun 2006 20:13:26 GMT Received: from smtp1.kolej.mff.cuni.cz (smtp1.kolej.mff.cuni.cz [195.113.24.4]) by robin.gentoo.org (8.13.6/8.13.6) with ESMTP id k54KDPHq023345 for ; Sun, 4 Jun 2006 20:13:25 GMT X-Envelope-From: cast3r@seznam.cz Received: from [195.113.27.33] (Caster@gehinom.kolej.mff.cuni.cz [195.113.27.33]) by smtp1.kolej.mff.cuni.cz (8.13.1/8.13.1) with ESMTP id k54KDOmU020890 for ; Sun, 4 Jun 2006 22:13:25 +0200 (CEST) (envelope-from cast3r@seznam.cz) Message-ID: <44833EE4.4090708@seznam.cz> Date: Sun, 04 Jun 2006 22:13:24 +0200 From: Caster User-Agent: Thunderbird 1.5.0.2 (X11/20060502) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-java@gentoo.org MIME-Version: 1.0 To: gentoo-java@lists.gentoo.org Subject: Re: [gentoo-java] Sun Java JDK 1.4* and Sun Java JRE 1.5 issue References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Archives-Salt: 0fbb5311-db70-4605-9dc7-ce7882ed4ebe X-Archives-Hash: 67b7786fd6551324de15daa0436072a4 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