2

我有一个 .classpath 文件,其中包含诸如

<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/current-3d"/>

然后我可以将外部用户库添加到 Eclipse 中的该容器。

但是一旦我这样做了,哪个文件会更新?即是否有一个类似的 xml 文件说 JAR 的 x,y + z 与 current-3d 容器相关联?

4

1 回答 1

2

Right I did actually find the answer, turns out it's the org.eclipse.jdt.core.prefs file, more info here Where/How does Eclipse store user libraries?

And the specific entry for the jars/user libraries is like so

org.eclipse.jdt.core.userLibrary.current-3d=<?xml version\="1.0" encoding\="UTF-8"?>\r\n<userlibrary systemlibrary\="false" version\="1">\r\n\t<archive path\="C\:/Users/pstatham/javacode/master/RunImported/3d/jgl.jar"/>\r\n</userlibrary>\r\n
于 2013-07-03T15:32:41.547 回答