How to install java jdk on fedora
How to install java jdk on fedora core? here i provide few steps to demonstrate how it’s work.
Installation Setup
Please visit sun java website to download any java jdk version you like.
http://java.sun.com/javase/downloads/index.jsp- #
- Click download, select Linux platform, language and accept license and continue.
- Select “Linux RPM in self-extracting file” and download jdk_filename-rpm.bin file (jdk-6u6-linux-i586-rpm.bin).
- After downloaded, changed to the directory where you saved the file.
- Login to root user or su to root or sudo, and issue ‘chmod
+x jdk_filename.-rpm.bin’ to make it executable.
chmod +x jdk_filename.bin -
Execute it
./jdk_filename-rpm.bin - Press space bar , repeat until system prompt to enter yes or no, type y and enter to continue.
- This will output a .rpm file in same directory
- Issue ‘rpm -i jdk_filename.rpm’, this will install all jdk
files on linux system /usr/java/jdk-version/
rpm -i jdk_filename.rpm Create symbol links to make it execute anywhere
ln -s /usr/java/jdk1.6.0/bin/java /usr/bin/java ln -s /usr/java/jdk1.6.0/bin/javac /usr/bin/javac- type java -version, DONE !!
Post-Installation Setup
Set JAVA_HOME into environment variable
Copy following statement and append to /etc/profile or .bashrc file, make system set JAVA_HOME into system environment variable.
export JAVA_HOME="/usr/java/jdk1.6.0;"
P.S Please visit How to install JDK on Ubuntu, if you want to know how to install java jdk with apt-get.