Build a Java development environment under Windows

Source: Internet
Author: User

Building a Java development environment under Windows requires downloading two tools, JDK and Eclipse

JDK: HTTP://PAN.BAIDU.COM/S/1DDLI0PJ

Eclipse's: Http://pan.baidu.com/s/1eQcSVuy

To install the JDK:

Click Jdk-7u25-windows-i586.exe

When you click the JDK, the JDK Installation Wizard opens


Click Next


Click Next


Indicates that the JDK is being installed


Click Next


Click Close


Note: The JDK is now installed


To configure environment variables:

Select the computer, and right-click

Select Properties

Select Advanced System Settings

Select Environment variables

Select Path

Click Edit

Click Edit to pop up the dialog box

Add the installation path of the JDK to the environment variable

Click OK


Click OK


Start eclipse

Select Eclipse.exe

Set the save path for the Java project, the path I set is E:\game\workspace

Click OK

Click Finish

After completing the previous steps, you enter Eclipse.

Create a Java Project

Select File


Select New, and then select Java Project

In Project name, enter the title of the project and click Finish

Select the src file under the created project directory and right-click

Select New, and then select Class

Enter the class name in name, note that the class name must be the same as the project name, and then click Finish

Write the following code in the workspace

public class Helloworld{public static void Main (string[] args) {System.out.println ("This is my first Java program!");}}


Effects after writing code in the workspace

Compiled Java appears

Execution results of the program



Build a Java development environment under Windows

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.