6

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?

4

4 回答 4

6

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

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

于 2009-06-09T20:43:50.233 回答
2

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

于 2009-06-09T20:45:20.903 回答
1

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

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

于 2011-12-21T15:20:18.823 回答
-1

如果您在 Eclipse 中选择项目属性,然后选择 Java Build Path,您可以在构建项目时选择不同的 JDK。

于 2009-06-09T20:45:36.423 回答