Configuration of Java development environment under Linux system (not finished ... )

Source: Internet
Author: User

1. View JDK version
Java-version

2. Place the downloaded JDK in the/USR/LIB/JVM (where the JVM is its own name)
sudo mv JDK1.8.0_111/USR/LIB/JVM

3, configure the environment variables (note which user is configured, this is the configured user variables, not system variables, system variables with vim/etc/profile)
(1) Open BASHRC
Gedit ~/.BASHRC

(2) Add the following configuration information to BASHRC
Export java_home=/usr/lib/jvm/jdk1.8.0_111 (This is the address where the user unzipped the JDK)
Export JRE_HOME=${JAVA_HOME}/JRE
Export Classpath=.:${java_home}/lib:${jre_home}/lib
Export Path=${java_home}/bin: $PATH

(3) Note save, and then use the following command to make the environment variable effective
SOURCE ~/.BASHRC

(4) Enter Env or java-version to see if it is successful

The above can be replaced with sudo apt-get install OPENJDK-7-JDK, but to configure something else (recommended with the above)

Problems installing eclipse: Eclipse cannot find JRE or JDK
$ cd <eclipse dir>
$ ln-sf $JRE _home JRE
The goal is to create a link in the Eclipse installation directory called the JRE that points to the JRE directory in the Java installation directory.

Configuration of Java development environment under Linux system (not finished ... )

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.