su -c "rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm"
Then fetch the packages needed:
su -c "yum install java-1.6.0-openjdk"
su -c "yum install java-1.6.0-openjdk-devel"
Set the JAVA_HOME environment variable to point to the location of the JDK installation. To find that location you can do a which java and repeated ls -l to follow the links to the concrete location.
Do the installation, e.g.:
java -Xmx256m -jar glassfish-installer-v2.1-b60e-linux.jar
Add the as-install/bin/ directory to the PATH environment variable.
To connect to the admin console, open a web browser to on http://hostname:4848
For login, the default admin user name is admin and the password is adminadmin.
No comments:
Post a Comment