Gentoo Archives: gentoo-desktop

From: Algardas <algardas@×××××.com>
To: gentoo-desktop@l.g.o
Subject: Re: [gentoo-desktop] Current best practices for java and gentoo
Date: Tue, 08 May 2007 08:39:36
Message-Id: 20070508113700.2f66f6c0.algardas@gmail.com
In Reply to: Re: [gentoo-desktop] Current best practices for java and gentoo by Dale
1 > To make java work correctly with most websites, just exactly which one
2 > should a person emerge and use?
3
4 If the java version you choose has the nsplugin use flag (most if not all have it), and you merge it with the use flag set, all applets (websites with java) not needing a newer version of java should work. I haven't seen any websites, which would need anything newer than the currently stable 1.5 series.
5
6 For normal use, you can just do
7 emerge sun-jdk
8 and don't worry about java anymore.
9
10 Of course, there are more kits to choose from (it is gentoo, after all), namely:
11 blackdown-jdk
12 diablo-jdk diablo-jre-bin
13 ibm-jdk-bin ibm-jre-bin
14 jrockit-jdk-bin
15 sun-jdk sun-jre-bin
16
17 and they all differ in licensing and implemented features (and size), but if you don't know about them - you don't need them, because sun-jdk/sun-jre-bin is fine for normal desktop use.
18
19 As for -jdk and -jre, jdk (Java Development Kit) is needed for compiling programs (and provides all the files jre (Java Runtime Environment) would provide). So if you do not compile java programs, you can get -jre packages. BUT one shouldn't forget that there must (well, maybe should) be a jdk-1.4 in your system, because gentoo (emerge) uses 1.4 versions to compile packages.
20
21 So, in short and at the time of writing, one could normally have
22 =dev-java/blackdown-jdk-1.4.2.14
23 for emerge and
24 =dev-java/sun-jre-bin-1.5.0.11
25 for the browser plugin. You can also be fine with the first one only, or you can have many different versions for different users (see below) etc. etc.
26
27 > Also, is it safe to have more than one version installed at the same time?
28
29 Yes, you can have as many as you want (this is what gentoo java project, the script java-config and java generations is all about). Just don't forget setting the default one correctly.
30
31 --
32 Algardas
33 --
34 gentoo-desktop@g.o mailing list

Replies

Subject Author
Re: [gentoo-desktop] Current best practices for java and gentoo Dale <dalek@××××××××××.net>