Netbeans 6.8 - 替代编译和运行时 jdks/jre 版本
有一个场景,我需要使用 jdk 1.5 编译我的项目,但使用 jre 1.6 运行它。我找不到切换运行程序时使用的 jre 的方法。我在早期版本的 netbeans 中读到了一些有关执行配置文件的内容,但 6.8 似乎不支持这一点。有什么想法吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你去项目->属性->源 -> 二进制源格式,然后根据您的情况选择 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