Gentoo Archives: gentoo-java

From: Daigo Kobayashi <daigo@×××××××××××.com>
To: gentoo-java@l.g.o
Subject: Re: [gentoo-java] Question about Sun-Jdk 1.4.2.10
Date: Sat, 03 Dec 2005 00:52:48
Message-Id: 4390EC37.5050206@abs-network.com
In Reply to: Re: [gentoo-java] Question about Sun-Jdk 1.4.2.10 by Greg Tassone
1 Hi. Greg
2
3 Thank you for reply my message. I try to upgrade sun-jdk 1.5
4 and successfully finished.
5 I know in some case jdk 1.5 may cause problem. But I dont't want
6 to back to jdk 1.4.2. So I remove sun-jdk 1.4.2_09.
7
8 If I found some problem, shoud I will report it?
9
10 regards,
11 Daigo Kobayashi
12
13 > OK, here's how this is done. It's actually easy but I'll include
14 > specific details for you, just in case you're new to this:
15 >
16 > * If it doesn't already exist, create the directory "/etc/portage"
17 >
18 > * Then create the file "/etc/portage/package.unmask" if it doesn't
19 > already exist.
20 >
21 > * Add the following line(s) to that file (comments may be
22 > omitted):
23 >
24 > #----------------
25 > dev-java/sun-jdk
26 > # (or whatever vendor package you want -- use the full name)
27 > dev-java/java-sdk-docs
28 > # (if you have your "doc" USE flag on)
29 > #----------------
30 >
31 > * The above removes the package mask added by the Gentoo
32 > developers. However, since the sun-jdk 1.5 package is also
33 > marked unstable ("~"), you may need to enable the "testing"
34 > profile for these packages as well. Unless your system is set
35 > to ~ you will need to perform the following:
36 >
37 > * If it doesn't already exist, create the file
38 > "/etc/portage/package.keywords".
39 >
40 > * Add the following lines to that file, where "~arch" is the
41 > unstable flag for your architecture (e.g., most likely ~x86 or
42 > ~amd64). Comments may be omitted, of course:
43 >
44 > #----------------
45 > dev-java/sun-jdk ~arch
46 > dev-java/java-sdk-docs ~arch
47 > #----------------
48 >
49 >
50 > That should do it. You can now emerge the package with a standard
51 > command:
52 >
53 > emerge -av dev-java/sun-jdk
54 >
55 >
56 > ** VERY IMPORTANT **
57 >
58 > Unless you know what you're doing, I strongly recommend that you leave
59 > your system VM set to a 1.4 JDK/runtime. Your message didn't indicate
60 > if you have one installed, so I'll assume you are using Blackdown (which
61 > is 1.4). If you aren't, you should install it now:
62 >
63 > emerge -av dev-java/blackdown-jdk
64 >
65 > (or use the JRE... I'm just giving examples at this point)
66 >
67 > ** Back to the WARNING **
68 >
69 > Installing the new sun-jdk will usually set your system VM to that one
70 > (which is 1.5). To fix this and set a 1.4 system VM, you need to
71 > perform the following steps *AFTER* the emerge:
72 >
73 > * Run the following command (as root) to set a new 1.4 system VM:
74 >
75 > java-config --set-system-vm=blackdown-jre-1.4.2.02
76 >
77 > (assuming you have that version of the blackdown JRE installed)
78 >
79 > * Now set your user VM to the 1.5 JVM. Run the following command
80 > as you standard user account(s):
81 >
82 > java-config --set-user-vm=sun-jdk-1.5.0.05
83 >
84 > (assuming you installed that version of the sun-jdk)
85 >
86 >
87 > That should do it. Enjoy!
88
89 --
90 gentoo-java@g.o mailing list

Replies

Subject Author
Re: [gentoo-java] Question about Sun-Jdk 1.4.2.10 Greg Tassone <greg@×××××××.net>