How to Tell Eclipse to Include Standard .jar Library for All Projects

后端 未结 4 1054
暗喜
暗喜 2020-12-08 17:36

I realize that in eclipse you can specify certain .jar libraries to add for individual projects, but I was wondering if it was possible to make it such that eclipse automati

4条回答
  •  死守一世寂寞
    2020-12-08 17:55

    I can't think of a way to do what you want specifically, but what I would recommend, if there were many of these jars, is to create a project to hold these jar files, put them in the projects classpath, and then set the project to export those jar files (that may be the default for jars in the lib directory, I can't remember).

    Then any new projects can simply add a dependency on this "jar" project to get all the jars in there included in its build path.

提交回复
热议问题