Installation and configuration of java in Hongqi Linux5.0
Source: Internet
Author: User
Installation and configuration of java under Hongqi Linux5.0-general Linux technology-Linux programming and kernel information. The following is a detailed description. The original Red Flag 5. 0 claims to have java, but I can see that only one jre is included. There is no way to install it by myself. I must first check it online. If yes, I have installed it for a long time, people are installed on redhat and do not know what the red flag is. But I am prepared to help you avoid detours and write them down. If you have different opinions or do not understand the information, you can leave a message on this page, or qq249537688, the authentication information is not dry.
Step 1: jdk in linux. This is easy to handle. You can go to sun's website. Http://java.sun.com/j2se/1.5.0/download.jsp
Step 2: Decompress the package. That's not enough. Right-click it. If you think you should make yourself look like a master, use the gunzip command. An rpm is generated.
Step 3: Double-click rpm. Oh, it looks like a master. You can use rpm-ivh.
Why is it most difficult to use? Every time you use it, you need to add it. do you say it is easy to use?
Recommended method (recommended by others, not by me, but by the next method)
Use cd to switch to your main directory, such as root/root and kookl/home/kookl.
Run vi. bashrc
Set JAVA_HOME =/usr/java/j2sdk1.4.2 _ 06
Export JAVA_HOME
Set PATH = $ PATH: $ JAVA_HOME/bin
Export PATH
Set CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar
Export CLASSPATH
(The problem is: Under Hongqi 5, this is useless. For me, maybe there is a problem with my red flag (even after the shutdown, it will be normal to have a problem)
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.