Build a Java Development Environment + install eclipse and create a new project, eclipseproject

Source: Internet
Author: User

Build a Java Development Environment + install eclipse and create a new project, eclipseproject

1. Build a java Development Environment

This section describes how to configure the environment in windows.

1. Install JDK first

Java sdk is short for JDK. You can download the latest JDK from its official website .. Http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

2. Configure Environment Variables

On the Windows XP system, right-click my computer and choose Properties> advanced

Right-click 'computer 'in win7 -- properties -- Advanced System settings-advanced

Next we need to configure three attributes: JAVA_HOME, PATH, and CLASSPATH...

1. Configure the JAVA_HOME attribute

Enter 'java _ home' in the variable name field, and paste the installation directory 'C: \ Program Files \ JAVA \ jdk1.8.0 _ 101 'in the variable value field ', click "OK". The JAVA_HOME variable is configured ..

2. Configure the CLASS_PATH variable

Similar to configuring JAVA_HOME, click "new" in "system variables" and enter
Variable name: "CLASSPATH"
Variable value :".; % JAVA_HOME % \ lib \ dt. jar; % JAVA_HOME % \ lib \ tools. jar; "(values in quotation marks, including the preceding values ". ", here % JAVA_HOME % refers to reference the previously configured JAVA_HOME)

3. Configure the path variable

Check whether the path variable exists in the 'System variable '.

, Add a semicolon (';') at the end of the variable value, and paste the path of the java SDK installation directory.

3. test environment variable Configuration:

Then click 'start' -- 'run', enter 'cmd', or press win + r to enter 'cmd '.

Enter java-version in the dos environment

OK.

2. Use elipse to create a java project step by step

1. Download eclipese

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

2.decompress and run eclipse.exe.

3. Create a workspace

A. Open eclipse.exe and the first interface appears. You need to set the workspace,

B. Click the workbench link in the upper-right corner of the work area to enter the workbench.

C. Create a java Project

7. Compile and run

Click Run -- Run on the menu bar to compile and Run the program, or press Ctrl + F11.

Now OK!

 

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.