运行两个版本的 Java JDK

发布于 2024-07-23 01:25:03 字数 157 浏览 5 评论 0原文

我主要在 Vista 上使用 JDeveloper 10 和 JDK 1.4.2。 我想安装 Eclipse 并让它运行最新的 JDK 6。

这可能不会发生冲突吗?

理想情况下,我只想使用 JDeveloper 并在 JDK 版本之间来回切换。 这可能吗?

I primarily use JDeveloper 10 with JDK 1.4.2 on Vista. I would like to install Eclipse and have it run the latest JDK 6.

Is this possible without conflict?

Ideally I would like to just use JDeveloper and switch back/forth between JDK versions. Is this possible?

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

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

发布评论

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

评论(4

晚风撩人 2024-07-30 01:25:03

确实有可能,你可以在系统中安装任意多个 JDK。
只需将它们安装到不同的目录中,然后您就可以将新的 JDK 添加到您的 IDE 中(它们支持多个)。

您可以根据每个项目选择一个。

It is indeed possible, you can have as many JDKs in system as you wish.
Just install them into different directories, then you can add a new JDK to your IDE (they support having multiple).

You can choose one on per-project basis.

陌伤ぢ 2024-07-30 01:25:03

我不确定 JDeveloper 10,但在 eclipse 中,您可以在 window>preferences>Java>Installed JREs 下指定您希望使用哪个已安装的 JDK。

I am not sure with JDeveloper 10, but in eclipse you can specify which installed JDK you wish you use under window>preferences>Java>Installed JREs.

深爱成瘾 2024-07-30 01:25:03

您可以使用 -vm 命令行开关或在 eclipse.ini 中指定运行 Eclipse 的 JRE。 例如 -vm "%JAVA_HOME%/bin/javaw.exe"

您可以通过 Window:Preferences:Java:Installed JREs 菜单指定执行代码的 JRE。

You can specify the JRE for Eclipse to run under with the -vm command line switch or in eclipse.ini. e.g. -vm "%JAVA_HOME%/bin/javaw.exe"

You can specify the JRE for executed code via the Window:Preferences:Java:Installed JREs menu.

听风念你 2024-07-30 01:25:03

如果您在 Eclipse 中选择项目属性,然后选择 Java 构建路径,则可以选择在构建项目时使用不同的 JDK。

If you select project properties in Eclipse, then Java Build Path, you can choose a different JDK to use when building the project.

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