Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the use of Order And Export tab in Java Build Path

What is the use of Order And Export tab in Java Build Path

like image 832
minil Avatar asked Apr 29 '10 13:04

minil


People also ask

What is the use of build path?

Build path is used by the compiler to resolve dependencies and build a project. Classpath is used during runtime when running a project in order to find necessary dependencies. Build path is configured on the Java Build Path property page of a project.

What is the use of build path in eclipse?

The build path is used for building your application. It contains all of your source files and all Java libraries that are required to compile the application.

Where is Java build path in eclipse?

In Eclipse select the web project and right-click Build Path > Configure Build Path. This will display the Java Build Path window.


2 Answers

It allows you to do two things:

  • Determine in which order projects and libraries appear in the classpath. If there are any duplicate classes, this determines which version is loaded
  • Determine which projects and libraries will be exported and thus available in other projects that depend on this one.
like image 174
Michael Borgwardt Avatar answered Sep 29 '22 19:09

Michael Borgwardt


Got some hint here for you:

Order and Export. Order in which projects and libraries appear in the build path and the default runtime classpath; e.g., use classes from a workspace project before using the same classes from an archive library.

Found it on informit.com

like image 35
lunactic Avatar answered Sep 29 '22 20:09

lunactic