Thursday, February 28, 2008

How to Install Java on cpanel server ?

How to Install Java on cpanel server ?

1. Download the SDK, Standard Edition 1.4.2_04 from java.sun.com (RPM) in the local machine (Not to the server)
2. upload the file via filemanager from Cpanel to /usr/local (Around 35 MB)
3. chmod 755 j2sdk.....bin
4. ./j2sdk....bin
5. cd /usr - > mkdir java
6.cd local
7. mv j2sdk1.4.2_04/ ../java
8. cd..
9. cd java
10. cd ../local
11. ln -s /usr/java/j2sdk1.4.2_04/ jdk
12. ln -s /usr/java/j2sdk1.4.2_04/jre/ jre
13. cd ..
14. set classpath=/usr/local/jdk
15. check up with typing java / javac if installed


-----------------------------------------------------------

For installation on plain linux server refer:

http://www.dougsparling.com/comp/howto/linux_java.html

No comments: