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

查看:18
本文介绍了如何告诉 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.

推荐答案

Under Window -> Preferences -> Java -> Installed JREs 找到你的默认 JRE(选中的那个)并点击 Edit.添加所需的罐子.

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天全站免登陆