environment variable configuration and Eclipse basic configuration

Source: Internet
Author: User

1. My Computer (right-click Properties)----> Advanced system Settings----> Edit System Variables

For example:

Config variable name: Catalina_home variable value: D:\Program files\java\apache-tomcat-7.0.69

 CLASSPATH .; %java_home%\lib;%java_home%\lib\tools.jar

Java_home C:\Program files\java\jdk1.8.0_144 (JDK installation location)

M2_home D:\MyMaven\apache-maven-3.3.9

Add%java_home%\bin%m2_home%\bin to the value of the PATH variable

Window+r output cmd command line output javac (direct execution can query the relevant commands and instructions)

Execute java-version (view Java version)

Execute javac-version (view JRE Runtime Environment version)

Issue: If Javac-version java-version version is inconsistent

WORKAROUND: You can replace the Java.exe Javaw.exe javaws.exe three files under C:\Windows\System32 with the corresponding version

Maven configuration:http://www.cnblogs.com/northern-light/p/7906552.html

environment variable configuration and Eclipse basic configuration

Related Article

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.