Use eclipse to create a java Project

Source: Internet
Author: User

Use eclipse to create a java Project

Note:Prerequisites: You must install the JDK environment before installing eclipse. The installation methods include: Download JDK, install JDK, configure JDK environment variables, and test whether JDK is installed properly. For detailed steps, see blog:

  1. System. out. println ("HelloWorldbyhttp: // blog.csdn.net/unix21 ");
    7). Compile and run

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

    There are many other methods to start the program, and eclipse itself has many shortcut buttons.

    After the program is compiled and run successfully, the result is output in the Console window.

    Note:

    Check whether the JDK installation environment is consistent with the eclipse environment.

    1. Open eclipse and go to Window --> Preferences --> Java --> Installed JREs. Check whether the path is consistent with the jdk path we installed.

    2. Change the Java Compiler version in eclipse to the maximum. In Window --> Preferences --> Java --> Compiler.

    3. In order to prevent the appearance of a space in future development from becoming a small black spot or something, in eclipse, expand Window --> Preferences --> General --> Editors --> Text Editors to remove the hooks before Show whitespace characters.

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.