2010-10-19 45 views

回答

1

就你而言,手動編輯項目的.classpath文件可能會使你獲得一定的效率。當我設置一個JAR的本地庫的位置,下面的條目添加到我的.classpath文件:

<classpathentry exported="true" kind="lib" path="path/to/library.jar" sourcepath="/path/to/src"> 
    <attributes> 
     <attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="path/to/native/library.dll"/> 
    </attributes> 
</classpathentry> 

你可以手動設置第一個JAR(通過Eclipse UI),關閉Eclipse和複製/粘貼通過適當的修改在.classpath中生成類路徑條目,然後重新啓動Eclipse。