[Summary] JDK1.4 installed on Linux Redhat AS3

xiaoxiao2021-03-05  24

System: Linux Redhat AS3 Update3

Installation package: J2SDK-1_4_2_05-linux-i586.bin

Installation process:

1. Copy this file to / TMP directory

---- // Note: CP J2SDK-1_4_2_05-Linux-i586.bin / TMP

2, then execute this file

---- // Note: ./j2sdk-1_4_2_05-linux-i586.bin

---- // Note: There is a point in front ".")

A list of copy files will appear. The default JDK is installed in the /usr/java/j2sdk1.4.2_05 directory.

3, set the Java environment variable

Edit the Profile file with VI

---- // Note: This file is in / etc directory

---- // Note: VI / ETC / PROFILE

In the end, add the following:

Export java_home = / usr / java / j2sdk1.4.2_05

Export Path = / usr / java / j2sdk1.4.2_05 / bin: $ PATH

Export classpath =.: / usr / java / j2sdk1.4.2_05 / lib / Tools.jar: /usr/java/j2sdk1.4.2_05/lib: $ ClassPath

The storage exit (different versions of the path will be different, please change according to your actual situation)

4, then let him take effect, beat the following command in the command line

---- // Note: Source / etc / profile

5, if you want other users to use Java, log in with other user accounts, then hit the command on the command line

---- // Note: Source / etc / profile

6. After these works are finished, test it with the following command, or tap the command Java will display the help of the command.

---- // Note: Which Java (Show related information)

Note: Because my Linux RedHat AS3 is completely installed, the execution Java is always prompted to find the /usr/java/j2sdk1.4.2_05/jre/lib/i386 directory after the online installation document operation. SO files (but actually exist). Remove the environment variable settings After using the java command, there is another unrelated information (another command), which is originally used to use the own commands, so you must put the JDK path in the path settings. front.

Installing JDK1.5 on the system may not have a problem (it is written in another Bloger log). The software version introduced by many articles on the Internet is relatively low, so it is not difficult to understand in the operation.

Thanks to blogs that recorded their own use.

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

New Post(0)