We installed jdk1.5.0_10 for our project in Fedora Core 3
Steps in installation:-
1. Download jdk-1_5_0_10-linux-i586.bin
Source: http://java.sun.com/j2se/1.5.0/download.jsp
Choose JDK 5.0 Update 10 and click on Linux self-extracting file
Save this in a separate folder(/Softwares/java)
2. Installation
Open a terminal. Type:
cd Softwares/java
Extract the packages type
./jdk-1_5_0_10-linux-i586.bin
Hold the enter key down until the yes/no line appears to allow you to agree to the license
agreement. Type "yes" and hit enter.
3. Configuration
Set the path. Type:
vi /etc/profile
Type these lines
export JAVA_HOME=/root/Softwares/java/jdk1.5.0_10
export PATH=$JAVA_HOME/bin:$PATH
4. Testing
Check the version: Type java -version.
Check the location: Type which java.
Write a java program. Compile and run it.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment