Building a Java development environment

Source: Internet
Author: User

The tools you need:

"Jdk-8u5-windows-i586.exe" (XP cannot install http://www.cnblogs.com/cxloge/p/3986689.html)

Http://www.oracle.com/technetwork/java/javase/downloads/index.html

"Babellanguagepack-eclipse-zh_4.4.0.v20140623020002.zip" (Chinese language Pack)

http://www.eclipse.org/babel/downloads.php

"Eclipse-standard-luna-r-win32.zip"

http://www.eclipse.org/downloads/

Related documents Download: Http://pan.baidu.com/s/1qWugWNU

JDK Environment Configuration

JDK Installation Path

C:\Program files\java\jdk1.8.0_05\

(There is no Chinese in the path, there is a space to carefully configure the point, or "C:\Java\jdk1.8.0_05\")

JDK installation Complete After the installation of the JRE, so the JRE can be installed or not installed ... No impact.

Because there's already a JRE inside the JDK.

The difference between JDK and JRE

JDK------>java Development Kit.

Simply put, the JDK is a developer-oriented SDK that provides a Java development environment and a running environment. The SDK is software Development Kit generally refers to a software development package, which can include function libraries, compiler programs, and so on.

JRE------>java Runtime enviroment

Refers to the Java Runtime Environment, which is intended for users of Java programs, not developers.

Configuring Environment variables

Java_home

Java_home points to the installation path of the JDK

C:\Program files\java\jdk1.7.0//This is the installation path of your JDK and can be replaced

CLASSPATH

The purpose of setting up classpath is to tell the Java execution Environment which directories can be used to find the classes or packages that you need to execute the Java program.

.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; Remember, there's a "." in front.

Path

PATH environment variable Originally in Windows, you just need to modify it so that he points to the JDK bin directory

%java_home%\bin;%java_home%\jre\bin;

Note that the "XXX user variable" is not the same as "system variable" and we want to configure "system variable".

There is a semicolon ";" No.

// Helloworld.java  Public class helloworld{    publicstaticvoid  main (string[] args) {        System.out.println ("HelloWorld!") );    }}

Run Helloworld.java with Eclipse compilation

Building a Java development environment

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.