users@glassfish.java.net

Re: Installing Glassfish on Linux

From: Kristian Rink <kawazu_at_zimmer428.net>
Date: Mon, 07 Jul 2008 12:09:00 +0200

Hi there;

glassfish_at_javadesktop.org schrieb:
> I did echo $PATH and got the follow poped out
>
> /usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/sbin:/usr/sbin:/
> sbin:/usr/java/jdk1.6.0_06/bin::/root/bin


Being working as 'root'? I wonder not seeing /bin and /usr/bin on this
list, that's where things like "uname" usually should be found.


> At first i got a BUILD failed error: asking to install JDK - which i
> had already installed, so decided to run the command:
>
> PATH=/usr/java/jdk1.6.0_06/bin: export PATH
>

That's close to what I supposed. Issuing this command is likely to set
your PATH to _only_ be the JDK/bin, which basically gives the system no
chance of actually knowing about / finding uname, sed and friends. ;) If
doing so, I recommend something like this:

export PATH=/usr/bin:/bin/:/usr/java/jdk1.6.0_06/bin

or, better,

export PATH=$PATH:/usr/bin:/bin/:/usr/java/jdk1.6.0_06/bin

($PATH to keep its former content and just "add" the other values to it).

About not finding the JDK, which message did the installer exactly
provide you with? Maybe you should do something like

export JAVA_HOME=/usr/java/jdk1.6.0_06/

to get this resolved?


Cheers & good luck,
Kristian

-- 
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: kawazu_at_jabber.ccc.de * icq: 48874445 * fon: ++49 176 2447 2771 "One
dreaming alone, it will be only a dream; many dreaming together is the
beginning of a new reality." (Hundertwasser)