Windows installation Java Environment

Source: Internet
Author: User

1: Website address: http://www.oracle.com/technetwork/cn/java/javase/downloads/jdk8-downloads-2133151-zhs.html download JDK, and install, This step has nothing special to say, is the executable file installation, and then cmd down into the installation directory and enter Java-version verify whether the installation is successful

2: Right-click My Computer (Computer) > Properties > Advanced system Settings > Environment variables > Setting variables in the configuration environment Java_home CLASSPATH PATH, this win7 and WIN10 interface is slightly different, I use this win7 system.

Create a new java_home environment variable, assigned to the JDK installation directory:

Create a new CLASSPATH environment variable and assign a value of.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;

Append the JAVA environment variable to the PATH environment variable:%java_home%\bin\;

At this time again under cmd execution java-version, do not have to go into the bin directory.

3: First write a Helloworld.java compile the Run program type must be the same as the file name, the main method is the main method of the class. Then javac Helloworld.java compile command javac Run command

Windows installation Java Environment

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.