If you simply want JDK and JRE just to run Java programs and also compile them then just go to in WHM : Software-> Install RPM and select from the list:
java-1.7.0-openjdk-devel
When you install the browser spits a bit of information.
On my Centos it is installed on something like /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/bin
So just add this path in .bashrc :
export PATH=$PATH:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/bin
And then save it and run ". ~/.bashrc". Now you can type command java/javac etc.
So instead of install complete Tomcat server, this is simple way to install java using WHM/Cpanel.
No comments:
Post a Comment