Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Keyword for dev-java/sun-j2ee
Date: Thu, 11 Feb 2010 20:33:51
Message-Id: 201002112231.15933.alan.mckinnon@gmail.com
In Reply to: Re: [gentoo-user] Keyword for dev-java/sun-j2ee by dhk
1 On Thursday 11 February 2010 22:06:50 dhk wrote:
2 > Another question about this.
3 >
4 > Where's a good place to set J2EE_HOME (/opt/sun-j2ee-1.3.1/) and
5 > JAVA_HOME? Should it be in each user's profile? If I wanted to set
6 > them globally for all users should they go in /etc/profile ?
7
8 How many users use it?
9
10 One? Put it in their profile.
11 Many? put it in the system profile.
12
13 This is not a decision peculiar to j2ee, you must make the identical decision
14 for hundreds of packages - same principles apply.
15
16 Or you could use the absurd method Sybase uses, but we won't go there now...
17
18
19 > Also when starting j2ee I get the following error.
20 > # /opt/sun-j2ee-1.3.1/bin/j2ee -verbose
21 > /opt/sun-j2ee-1.3.1/bin/j2ee: line 14: /opt/sun-j2ee-1.3.1//bin/java: No
22 > such file or directory
23 >
24 > Is there another java package I need to install? /bin/java doesn't exist.
25
26 I'm not surprised.
27
28 it's not /bin/java
29 it's /opt/sun-j2ee-1.3.1/bin/java
30 an entirely different thing.
31
32 When I last played with j2ee, the package from Sun did not have a JVM, you had
33 to install that first.
34
35 You probably need to install a jdk or jvm, which is odd as that should be a
36 DEPEND.
37 If you do have a jdk or jvm, you need a symlink:
38
39 ln -s /usr/bin/java /opt/sun-j2ee-1.3.1/bin/java
40
41
42 --
43 alan dot mckinnon at gmail dot com

Replies

Subject Author
Re: [gentoo-user] Keyword for dev-java/sun-j2ee dhk <dhkuhl@×××××××××.net>