Daily a JAVA----------environment building Path,java_home,classpath

Source: Internet
Author: User

Environment Construction:


Path: When executing Java commands, the system will go to the PATA configured path and look for the command to execute.

Purpose: To enable Java commands to be executed anywhere

---------------------------------------------------

Example: path=

C:\programfiles\java\jdk1.8.0_91\bin;%systemroot%\system32;%systemroot%;%systemroot%\sy Stem32\Wbem;%SYSTEMROOT %\system32\windowspowershell\v1.0\; C:\Program Files (x86) \ati Technologies\ati. ace\core-static; E:\Program Files (x86) \mysql\mysql Server 5.5\bin

-----------------------------------------------------

Or: Path=%java_home%\bin;%systemroot%\system32;%syste Mroot%;%systemroot%\system32\wbem;%systemro ot%\system32\windowspowershell\v1.0\; C:\Program Files (x86) \ati

Technologies\ati. ace\core-static; E:\Program Files (x86) \mysql\mysql Server 5.5\bin

-----------------------------------------------------


Installation path for Java_home:java

----------------------------------

Example: Java_home=c:\program files\java\jdk1.8.0_91

-----------------------------------



Classpath:java the path to the compiled class file and tells the virtual machine where to go to execute the Java file.

Once you have configured the path, you can execute the compiled. class file anywhere. If not configured, look for the. class file under the current path

-----------------------------

When you set the change file. No add; No, it will only be found in the Set directory, add the number, in the specified location can not find, will find in the current location

Classpath=.;D:/ CLASS

Classpath=d:/class;

-----------------------------


Temporary configuration of environment variables: Use the SET command, only valid in the current command window

Set is appended on the original basis

----------------------------

Example: Set path=e:\java;%path%

----------------------------




Daily a JAVA----------environment building Path,java_home,classpath

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.