Java thousand ask _02 basic use (009) _eclipse How to set BuildPath

Source: Internet
Author: User

Click to enter _ more _java thousand ask

1. How Eclipse sets up BuildPath

We know that running a Java application relies on the JRE and the third-party jar packages used in the program, and when we run with Java commands, we typically manually specify-classpath (the default is the operating system's CLASSPATH environment variable), and Eclipse provides a handy introduction feature. You can choose to load different classpath for different projects.

See how Java Works here: [How Java programs run][2]
[2]:

Here's how to configure it:

Right-click on Project –>preferences–>java Build Path

There are 4 tab tabs, respectively, as follows:

"Source"
Used to specify the path of the source file under this project, the source files under the selected path will be automatically compiled. The following default output folder specifies the output directory of the compiled file.

"Project"
Used to specify the project to be introduced in this workspace, which is equivalent to introducing the project into the jar package.

"Libraries"
Used to introduce a JRE or a third-party jar package (you can also introduce a separate. class file). This is the equivalent of making the classpath of the project.

"Order and Export"
Specifies the compilation order for each path.

Java thousand ask _02 basic use (009) _eclipse How to set BuildPath

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.