如何让 Eclipse 将 .class 文件存储在存储 .java 源文件的项目文件夹之外的文件夹中?

发布于 2024-08-23 21:18:27 字数 279 浏览 2 评论 0原文

根据 这个问题(请参阅底部附近的评论),我想知道是否有人知道如何让 Eclipse 将 .class 文件存储在我选择的存储 .java 源文件的项目文件夹之外的文件夹中。我在新项目创建向导中没有看到执行此操作的选项,但我对 Eclipse 的了解非常有限。谢谢!

Per this question (see comments near the bottom), I was wondering if anyone knows any way to get Eclipse to store .class files in a folder of my choosing outside the project folder where the .java source files are stored. I have not seen an option to do this in the new project creation wizard, but my knowledge of Eclipse is quite limited. Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

荒路情人 2024-08-30 21:18:27

如果您的 Dropbox 文件夹位于 Eclipse 项目之外,您可以将源文件夹链接到 Eclipse 中,以便在 Eclipse 内部维护类文件,但 Dropbox 文件夹中的源也将获得您的更改。右键单击项目,选择“Build Path”,然后选择“Link Source...”。

这假设您不关心与 Eclipse 项目关联的任何其他文件(.classpath、.project 等)。

If your Dropbox folder was outside of your Eclipse project you could link the source folder into Eclipse so that the class files would be maintained inside of Eclipse, but the source in your Dropbox folder would get your changes as well. Right click on the project select "Build Path", then "Link Source..."

This assumes you don't care about any of the other files associated with an Eclipse project (.classpath, .project, etc...).

云淡月浅 2024-08-30 21:18:27

右键单击项目;选择“Java构建路径”;选择“来源”选项卡。底部是一个您可以指定的字段。默认情况下我认为它是 ${project}/bin

当然现在我看到你说的是项目路径之外。

Right click on the project; choose "Java Build Path"; select the "Source" tab. At the bottom is a field where you can specify. By default I thought it was ${project}/bin

Of course now I see that you said OUTSIDE the project path.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文