"Summary" Linux RedHat AS3 Install JDK1.4

Source: Internet
Author: User
Tags command line log versions linux

System: Linux RedHat AS3 Update3











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











Installation process:











1. Copy the file to the/tmp directory











----//NOTE: CP j2sdk-1_4_2_05-linux-i586.bin/tmp











2, and then execute the file











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











----//Note notice/Front has a point ".")











The list information for the copied file appears, and the JDK is installed in the/USR/JAVA/J2SDK1.4.2_05 directory by default.











3. Set Java environment variables











Edit Profile with VI











----//Note: The file is in the/etc directory











----//NOTE: Vi/etc/profile











Add the following on the last side:











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











Disk exit (different versions of the path will vary, please change according to their actual situation)











4, and then to make him effective, in the command line to beat the following command











----//NOTE: Source/etc/profile











5. If you want other users to be able to use Java, log in with another user account, and then tap the command at the command line.











----//NOTE: Source/etc/profile











6, after the work is done with the following command test, or directly on the command Java will display the help of the command.











----//NOTE: Which Java (show the relevant information on it)























Attention to the problem: because my Linux RedHat AS3 selected is a full installation, according to the installation of documents on the Web after the operation found that the implementation of Java is always prompted to find/usr/java/j2sdk1.4.2_05/jre/lib/ A so file in the I386 directory (but it actually exists). Also remove the environment variable set up using the Java command is also a number of other unrelated information (another command), it is the first use of its own command, so in the path settings must be the JDK path to the front.











Installing JDK1.5 on this system may not be a problem (it is read in another Bloger log). Many articles on the internet about the software versions are relatively low, so in the operation will appear various problems are not difficult to understand.











Thanks to the bloggers who have recorded their own use of the process.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.