Simple and practical Java eclipse

Source: Internet
Author: User

    1. The simple use of eclipse

Steps to use for eclipse:

The first step: Select the working directory. All of the code written later on Eclipse is on the working directory.

Step Two: Create a project on the Project Exploer window, and we will write the code in the future as an engineering unit.

Steps to create a new project:

Project Exploer window Right-click----------> New---------> Java Project

Step Three: Right-click in the SRC directory of the project and create a class on the new class.

Catalog description of the project:

Settings:elcipse automatically generated configuration files. Don't touch it.

Bin: For storing all the class files.

SRC: Used to store all Java source files.

Fourth step: Run the Java file.

Mode one: Java source right-click-------->run as-----------> Java application

Way two: Green Arrow--------->run as-----------> Java application

Mode three: Shortcut key operation: Ctrl + F11

Fifth Step: Import Project:

Package Cn.itcast.eclipse;import;/* using Eclipse benefits: 1. CTRL +/Inner completion. 2. You do not need to use the Javac tool to compile, and once you save on Eclipse, Eclipse automatically compiles. 3. Accurate error, automatic repair (CTRL + 1). */public class Demo1 {public static void main (string[] args) {File file = new file ("F:\\a.txt"); System.out.println ("AAA"); System.out.println ("Hello World");}}

Simple and practical Java eclipse

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: 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.