Wednesday, 1 February 2012

Installing JAVA in Linux(SentOS)


1. Download jdk.bin and extract it to any location.
2. Create the following file /etc/profile.d/java.sh with following content
Export JRE_HOME=/home/Sumeet/java/jdk_1.6/jre
Export PATH=$PATH : $JRE_HOME/bin
Export JAVA_HOME=/home/Sumeet/java/jdk_1.6
Export JAVA_PATH=$JAVA_HOME
Export PATH=$PATH : $JAVA_HOME/bin
3. Give the read, write and execute permission on all files under tomcat/bin folder using CHMOD command:
CHMOD +rwx *.*
Or,
CHMOD a+rwx *.*
4. Run ../tomcat/bin/startup.sh file
Sh startup.sh
5. Start the server



2 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete