Source:源文件和輸出文件目錄,如果創建一個項目時,沒有分開源文件和輸出文件,可以通過這個地方修改;多個源文件可以在一個項目里使用;例如,將應用程序的源代碼和Junit測試分開;在src同級目錄下創建一個test目錄(Folder),在Source下add folder添加test目錄,即可在test下創建包和類,否則即使無法創建一個類;
output folder指的是編譯后的文件所在目錄;
Project:使用其他項目的類,使用的類必須已經有對應的.class,否則Eclipse找不到;如果是一個Java Project,手動刪除bin下面的所有文件,需要使用clean項目,重新build過,即使選擇build auto也不會build。
Project Libraries:項目需要使用到的jar(即平時web項目lib下面的jar)。
-
Add JARs. Select archive files located within any project from the current workspace; projects are not required to be Java projects.
-
Add External JARs. Select archive files anywhere on your file system external to the current workspace.
-
Add Variable. Use a Java classpath variable as the base path for external archives.
-
Add Library. Select from a list of user libraries that define collections of related archive files.
-
Add Class Folder. Select any folder from a project in the current workspace that contains Java .class files.
Order and export:規定多個jar(項目)有重名的類時,這些類的使用順序;如果勾選了某個checkbox,則導出項目的文件的.classpath里 checkbox所在項的classpathentry多一個exported="true"的屬性,這就意味着多個項目依賴於這個項目類時,可以通過Project Tab添加這個項目的包(When it is exported, it is available to other eclipse projects. In maven, if you have multiple projects that depend on each other, eclipse can resolve projects within the workspace. So changing that is likely to have an effect when you have multiple projects.)
后的摘要,本人英文水平有限,如果不正確之處,請指出,謝謝!