What\'s the use of \"Order and Export\" tab in \"Java Build Path\" dialog box?
a very good example from Coderanch by Ilja Preuss
Say you have junit.jar in the build path of project A. Project B depends on project A.
Now you write a junit test in project B. If project A exports junit.jar, project B can use it at compile time - no more action necessary. If A doesn't export it, B doesn't know about it - you will have to explicitely put it into its build path, too.
Order and Export
tab as your rightly guessed shows the order of libraries which will be included in your project build path.
Using the buttons up
and down
you can adjust your libraries order according to your project needs.
This tab seems to pull double duty (see bottom of this help page for small amount of detail).
On one hand, it functions as the order of resolution for resources used in the building of the project in question (the "Order" part). On the other, it also serves to define what parts of this build path are contributed to dependent projects' (those listing this project in the "projects" tab for their view of this preference panel) build paths (the "Export" part).
This latter function is why the checkboxes exist on the left hand side, as you ask (note that the '-' signs cannot be unchecked, as source files defined in this project cannot be deselected, as stated in help file). A dependent project that expects some resource from the contributing project will not compile/run if the contributing project doesn't export that resource.
EDIT: see this SO post for corroboration.
There is one case where-in I found this useful. I had to use a sun.* class of an IBM jar. This class was also present in local jre, but my requirement was to use IBM's class. But by default,the compiler would refer the local jdk class only. In the eclipse order and export tab, I moved the external jar ahead of the JRE lib. Now, the compiler would refer to the class from IBM jar instead of local JRE.
To answer your specific question, if this project were to be added as a dependency for another Java project, the order would be used to resolve classes and packages in this project when running the other project. Those classes and packages are said to be exported to/for the other running project's class path.