public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
From: Greg Tassone <greg@tassone.net>
To: gentoo-java@lists.gentoo.org
Subject: Re: [gentoo-java] Question about Sun-Jdk 1.4.2.10
Date: Tue, 29 Nov 2005 14:11:28 -0800	[thread overview]
Message-ID: <1133302289.8028.56.camel@localhost> (raw)
In-Reply-To: <438C7543.3060007@abs-network.com>

[-- Attachment #1: Type: text/plain, Size: 2846 bytes --]

On Wed, 2005-11-30 at 00:35 +0900, Daigo Kobayashi wrote:
> Hi.
> 
> I want to use Java 5.0 on gentoo. But now it marks unstable.
> Is there any task that I can help to unmask Java 5.0? If possible
> I want to try.

OK, here's how this is done.  It's actually easy but I'll include
specific details for you, just in case you're new to this:

      * If it doesn't already exist, create the directory "/etc/portage"

      * Then create the file "/etc/portage/package.unmask" if it doesn't
        already exist.

      * Add the following line(s) to that file (comments may be
        omitted):

#----------------
dev-java/sun-jdk
  # (or whatever vendor package you want -- use the full name)
dev-java/java-sdk-docs
  # (if you have your "doc" USE flag on)
#----------------

      * The above removes the package mask added by the Gentoo
        developers.  However, since the sun-jdk 1.5 package is also
        marked unstable ("~"), you may need to enable the "testing"
        profile for these packages as well.  Unless your system is set
        to ~ you will need to perform the following:

      * If it doesn't already exist, create the file
        "/etc/portage/package.keywords".

      * Add the following lines to that file, where "~arch" is the
        unstable flag for your architecture (e.g., most likely ~x86 or
        ~amd64).  Comments may be omitted, of course:

#----------------
dev-java/sun-jdk ~arch
dev-java/java-sdk-docs ~arch
#----------------


That should do it.  You can now emerge the package with a standard
command:

emerge -av dev-java/sun-jdk


** VERY IMPORTANT **

Unless you know what you're doing, I strongly recommend that you leave
your system VM set to a 1.4 JDK/runtime.  Your message didn't indicate
if you have one installed, so I'll assume you are using Blackdown (which
is 1.4).  If you aren't, you should install it now:

emerge -av dev-java/blackdown-jdk

(or use the JRE... I'm just giving examples at this point)

** Back to the WARNING **

Installing the new sun-jdk will usually set your system VM to that one
(which is 1.5).  To fix this and set a 1.4 system VM, you need to
perform the following steps *AFTER* the emerge:

      * Run the following command (as root) to set a new 1.4 system VM:

java-config --set-system-vm=blackdown-jre-1.4.2.02

(assuming you have that version of the blackdown JRE installed)

      * Now set your user VM to the 1.5 JVM.  Run the following command
        as you standard user account(s):

java-config --set-user-vm=sun-jdk-1.5.0.05

(assuming you installed that version of the sun-jdk)


That should do it.  Enjoy!


> By the way, I'm really sorry to send e-mail to Greg's personal address.
> So I send same mail to list.

No problem at all.

Cheers,
Greg

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2005-11-29 22:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-29  0:01 [gentoo-java] Question about Sun-Jdk 1.4.2.10 Tomasz Buchert
2005-11-28 23:26 ` Eddy Mulyono
2005-11-29  9:04 ` Greg Tassone
2005-11-29 11:50   ` Petteri Räty
2005-11-29 21:01     ` Greg Tassone
2005-11-29 15:35   ` Daigo Kobayashi
2005-11-29 22:11     ` Greg Tassone [this message]
2005-12-03  0:52       ` Daigo Kobayashi
2005-12-03  2:44         ` Greg Tassone
  -- strict thread matches above, loose matches on Subject: below --
2005-11-29 23:57 Peter B. West
2005-11-30  0:31 ` Antony Riley
2005-11-30  1:12 ` Joshua Nichols
2005-11-30 22:39   ` Peter B. West
2005-11-30 23:09     ` Greg Tassone
2005-12-03  8:23       ` Peter B. West
2005-12-03  9:45         ` Petteri Räty

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1133302289.8028.56.camel@localhost \
    --to=greg@tassone.net \
    --cc=gentoo-java@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox