For more information about linux programming and kernel, see basic configurations of java in Linux. From http://blog.tom.com/murphy3847
This article has been written for two days. As it has been written for many days, today is a piece of cake. It is posted, and there may be people who are developing on linux, maybe it will play a role for them, because this is what I write while operating, it should be more practical than those posted. Now, my environment is redhat, and linux kernel seems to be 2.4.
I. Download the necessary software for java Development
1: Java --- jdk
Download URL: java.sun.com
LINUX Of course download linux version: java_app_platform_sdk-5_02-linux.bin
Then enter the command chmod 755/mnt/java_app_platform_sdk-5_02-linux.bin under shell.
Press enter, then enter. java_app_platform_sdk-5_02-linux.bin, so wait for the prompt, the previous installation need to agree and the like, huh, to 6.0 on the human, also turned into a human screen.
When I get used to the installation path in window, I will install the file in my own folder.
/Jdk5.0
Depressed. After the installation, I checked the version and found that jre was 6.0.
After installation, configure the runtime environment.
********************* ********
Oh, I am configuring the/etc/profile file. It is said that it is not good. I just got it, and I don't know what's wrong. I should use it first.
It seems like it's global. What's wrong?
Just put the following code at the bottom of the file.
Export JAVA_HOME =/jdk5.0/jdk
Export CLASSPATH =/jdk5.0/jdk/lib/dt. jar:/jdk5.0/jdk/lib/tools. jar
Export PATH =/jdk5.0/jdk/bin: $ PATH
****************************************
Well, that's almost the case. Next, let's talk about the other half. Are you used to configuring JAVA in WINDOW? If you are used to it, you should pay attention to dt. jar and/jdk5.0 are in the middle of a colon. Do not create a semicolon.
After that, restart the machine.
After logging on again, If you log on from TXT, you will receive a MAIL saying that you have set up the environment. User-friendly !!! :)
After startx, you enter the GUI and open a SHELL
Enter java
Javac
Java-version
Echo $ JAVA_HOME
Any one can. Theory won't go wrong. Oh, this is passed in redhat9
However, UBTUNU has an error. You should download JRE again, which should be:
Export JAVA_HOME =/jdk5.0/jdk
Export JRE_HOME =/jdk5.0/jre
Export CLASSPATH =/jdk5.0/jdk/lib/dt. jar:/jdk5.0/jdk/lib/tools. jar
Export PATH =/jdk5.0/jdk/bin: $ PATH
In addition, if you run it with ROOT, the runtime environment cannot be found and an error is returned:
Error creating the view.org. eclipse. core. runtime. Plugin
The system prompts that the core cannot be found, so the permission can only be changed first (sudo chmod ugo + rw WORKSPACE address ).
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