如何告诉Eclipse为所有项目添加标准的.jar库 [英] How to Tell Eclipse to Include Standard .jar Library for All Projects

查看:78
本文介绍了如何告诉Eclipse为所有项目添加标准的.jar库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我意识到,在eclipse中,您可以指定某些.jar库来为个别项目添加,但是我想知道是否可以使eclipse自动将标准的.jar添加到所有项目的类路径中。我正在使用eclipse进行java课程,并希望能够自动使用课程的stdlib进行所有项目。

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 automatically adds standard .jar's to the classpath for all projects. I'm using eclipse for a java course and would like to be able to automatically use the course's stdlib for all projects.

推荐答案

在窗口 - >首选项 - > Java - >已安装的JRE找到您的默认JRE(已选中的)并按编辑。添加你想要的罐子。

Under Window -> Preferences -> Java -> Installed JREs find your default JRE (the checked one) and hit Edit. Add jars that you want.

这篇关于如何告诉Eclipse为所有项目添加标准的.jar库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆