users@glassfish.java.net

Re: Cannot Install 3.1 on Solaris

From: <forums_at_java.net>
Date: Tue, 5 Apr 2011 02:43:36 -0500 (CDT)

Yea, its must be something specific to my environment, but what could it be.
If I download the ZIP veriosn of 3.1, I can extract that and then entire
server runs successfully - so my java evnironment is working!

See here for some captures of my situation:

root_at_smile-dev-zone1:/opt # env
TERM=xterm
SHELL=/bin/bash
SSH_CLIENT=10.0.0.74 58457 22
OLDPWD=/
SSH_TTY=/dev/pts/3
USER=root
LD_LIBRARY_PATH=/opt/csw/include:/usr/openwin/lib:/opt/csw/lib:/usr/local/lib:/opt/csw/mysql5/lib/mysql:/opt/smile/lib
MAIL=/var/mail//root
PATH=/opt/jdk1.6.0_24/bin/:/opt/csw/mysql5/bin:/opt/csw/mysql51/bin/:/opt/csw/bin:/usr/sfw/bin:/usr/sbin:/usr/bin:/usr/local/bin:/opt/smile/sbin:/opt/csw/gcc3/bin:/opt/csw/gcc4/bin
PWD=/opt
JAVA_HOME=/opt/jdk1.6.0_24/
TZ=Africa/Johannesburg
PS1=\[\033[1;33m\]\u\[\033[1;37m\]@\[\033[1;32m\]\h\[\033[1;37m\]:\[\033[1;31m\]\w
\[\033[1;36m\]\$ \[\033[0m\]
SHLVL=1
HOME=/
LOGNAME=root
SSH_CONNECTION=10.0.0.74 58457 10.0.1.11 22
PKG_CONFIG_PATH=/opt/csw/include:/usr/local/lib:/backup/lua-5.1.1/etc:/usr/lib/pkgconfig:/opt/csw/lib/pkgconfig:/usr/local/lib/pkgconfig:/opt/csw/lib
DISPLAY=10.0.0.74
_=/usr/bin/env
 

root_at_smile-dev-zone1:/opt # sh
./glassfish-3.1-unix.sh                    
Extracting the installer archive...
Extracting the installer runtime...
Extracting the installer resources...
Extracting the installer metadata...
Welcome to GlassFish V3 installer
Using the user defined JAVA_HOME : /opt/jdk1.6.0_24
Entering setup...
Must specify a java installation using -j
 

root_at_smile-dev-zone1:/opt # sh ./glassfish-3.1-unix.sh -j /opt/jdk1.6.0_24
Extracting the installer archive...
Extracting the installer runtime...
Extracting the installer resources...
Extracting the installer metadata...
Welcome to GlassFish V3 installer
Using the user defined JAVA_HOME : /opt/jdk1.6.0_24
Entering setup...
Must specify a java installation using -j
 

root_at_smile-dev-zone1:/opt # which java
/opt/jdk1.6.0_24/bin//java
root_at_smile-dev-zone1:/opt # java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Server VM (build 19.1-b02, mixed mode)

 

root_at_smile-dev-zone1:/opt # cat /etc/release
                        Solaris 10 8/07 s10x_u4wos_12b
X86
           Copyright 2007 Sun Microsystems, Inc.  All Rights
Reserved.
                        Use is subject to license
terms.
                            Assembled 16 August
2007
 

 

And if I pass an invalid -j option:

root_at_smile-dev-zone1:/opt # sh ./glassfish-3.1-unix.sh -j /opt/doesnotexist
Extracting the installer archive...
Extracting the installer runtime...
Extracting the installer resources...
Extracting the installer metadata...
/opt/doesnotexist must be the root directory of a valid JVM installation


--
[Message sent by forum member 'paulcb']
View Post: http://forums.java.net/node/788618