Netbeans 6.8 - 替​​代编译和运行时 jdks/jre 版本

发布于 2024-08-17 17:03:48 字数 309 浏览 4 评论 0原文

有一个场景,我需要使用 jdk 1.5 编译我的项目,但使用 jre 1.6 运行它。我找不到切换运行程序时使用的 jre 的方法。我在早期版本的 netbeans 中读到了一些有关执行配置文件的内容,但 6.8 似乎不支持这一点。有什么想法吗?

在 eclipse 中似乎很容易做到。< /a>

Have a scenario where i need to compile my project with jdk 1.5 but run it with jre 1.6. I can't find a way to switch the jre that is used when running my program. I read something about execution profiles in an earlier version of netbeans, but 6.8 doesn't seem to support this. Any ideas?

Seems easy to do in eclipse.

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

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

发布评论

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

评论(1

烟酉 2024-08-24 17:03:48

你去项目->属性->源 -> 二进制源格式,然后根据您的情况选择 jdk 1.5。在库中你可以选择Java Platform

You go to project-> properties - > sources ->binary source format and you pick your jdk 1.5 in your case. In libraries you can pick Java Platform

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