public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Keyword for dev-java/sun-j2ee
Date: Thu, 11 Feb 2010 22:31:15 +0200	[thread overview]
Message-ID: <201002112231.15933.alan.mckinnon@gmail.com> (raw)
In-Reply-To: <4B74635A.9040205@optonline.net>

On Thursday 11 February 2010 22:06:50 dhk wrote:
> Another question about this.
> 
> Where's a good place to set J2EE_HOME (/opt/sun-j2ee-1.3.1/) and
> JAVA_HOME?  Should it be in each user's profile?  If I wanted to set
> them globally for all users should they go in /etc/profile ?

How many users use it? 

One? Put it in their profile.
Many? put it in the system profile.

This is not a decision peculiar to j2ee, you must make the identical decision 
for hundreds of packages - same principles apply.

Or you could use the absurd method Sybase uses, but we won't go there now...


> Also when starting j2ee I get the following error.
> # /opt/sun-j2ee-1.3.1/bin/j2ee -verbose
> /opt/sun-j2ee-1.3.1/bin/j2ee: line 14: /opt/sun-j2ee-1.3.1//bin/java: No
> such file or directory
> 
> Is there another java package I need to install?  /bin/java doesn't exist.

I'm not surprised.

it's not /bin/java
it's /opt/sun-j2ee-1.3.1/bin/java
an entirely different thing.

When I last played with j2ee, the package from Sun did not have a JVM, you had 
to install that first.

You probably need to install a jdk or jvm, which is odd as that should be a 
DEPEND.
If you do have a jdk or jvm, you need a symlink:

ln -s /usr/bin/java /opt/sun-j2ee-1.3.1/bin/java


-- 
alan dot mckinnon at gmail dot com



  reply	other threads:[~2010-02-11 20:33 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-11 13:19 [gentoo-user] Keyword for dev-java/sun-j2ee dhk
2010-02-11 14:40 ` Alan McKinnon
2010-02-11 14:56   ` dhk
2010-02-11 15:25     ` Alan McKinnon
2010-02-11 15:46     ` Dale
2010-02-11 16:09       ` Alex Schuster
2010-02-11 18:28         ` Alan McKinnon
2010-02-11 19:49           ` Neil Bothwick
2010-02-11 23:51           ` Dale
2010-02-12  6:25             ` Alan McKinnon
2010-02-12 11:13               ` Dale
2010-02-11 16:36       ` dhk
2010-02-11 20:06         ` dhk
2010-02-11 20:31           ` Alan McKinnon [this message]
2010-02-11 22:10             ` dhk
2010-02-11 22:20               ` Alan McKinnon
2010-02-11 22:58                 ` dhk
2010-02-11 23:12                   ` Alan McKinnon
2010-02-11 23:28                     ` dhk
2010-02-14 20:37                       ` dhk
2010-02-15  7:16                         ` Alan McKinnon
2010-02-11 21:06           ` [gentoo-user] " walt
2010-02-11 22:11             ` dhk

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=201002112231.15933.alan.mckinnon@gmail.com \
    --to=alan.mckinnon@gmail.com \
    --cc=gentoo-user@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