Install JDK1.5 under Linux

xiaoxiao2021-03-06  58

I installed JDK under Linux today, because I was still a Linux rookie, so I was afraid of being afraid, but now it is good, I'm finished, it is very relaxed, and the installation process is simply listed:

Login system with root

2. Go to java.sun.com to download the rpm of JDK1.5.0 for Linux. It should be a file of JDK-1_5_x-RC-Linux-I586-rpm.bin

3. Get executable permissions via the CHMOD X JDK-1_5_x-rc-linux-i586-rpm.bin command

4. Installation by rpm -ivh jdk-1_5_x-rc-linux-i586-rpm.bin

5. After installation, JDK is installed in / usr / java / directory

6. Set environment variables (write / etc / profile)

Export java_home = /usr/java/jdk1.5

Export Path = $ PATH: $ java_home / bin: $ java_home / jre / bin

Export classpath =.: / usr / java / jdk1.5 / lib: /usr/java/jdk1.5/jre/lib: $ ClassPath

Okay Type Java -Version If there is a related JDK version information, it proves to be successful.

For the sake of developing, I have a Eclipse to do IDE, so I can do Java development in Linux, so good

Eclipse installation is much simple, down (a zip compression package), directly unzip to the directory you want, I will decompress it to / OPT.

转载请注明原文地址:https://www.9cbs.com/read-113022.html

New Post(0)