Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有一个场景,我需要使用 jdk 1.5 编译我的项目,但使用 jre 1.6 运行它。我找不到切换运行程序时使用的 jre 的方法。我在早期版本的 netbeans 中阅读了有关执行配置文件的内容,但 6.8 似乎不支持这一点。有任何想法吗?
在eclipse中似乎很容易做到。
您转到项目-> 属性-> 源-> 二进制源格式,然后根据您的情况选择 jdk 1.5。在库中,您可以选择 Java 平台