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