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 via email to