简体   繁体   English

在Eclipse中找不到已安装的JDK 7

[英]installed JDK 7 is not found in eclipse

I run eclipse helios (64 bit version) on windows 7 (64 bit) platform. 我在Windows 7(64位)平台上运行Eclipse helios(64位版本)。 I've downloaded both JDK 6 and 7 on "Program Files" folder. 我已经在“ Program Files”文件夹中下载了JDK 6和7。 I want to compile my Java program in Java 1.7 so that I'd following to switch it. 我想在Java 1.7中编译我的Java程序,以便我跟随它进行切换。

  1. click on project folder 点击项目文件夹
  2. select Properties 选择属性
  3. select Java Compiler 选择Java编译器

However system doesn't show Java 1.7 option. 但是,系统未显示Java 1.7选项。

[update] [更新]

after adding jdk 1.7 under installed JREs. 在已安装的JRE下添加jdk 1.7之后。

在此处输入图片说明

Firstly, you need config eclipse jdk , add the jdk 1.7 to eclipse, the following screenshot is below 首先,您需要config eclipse jdk ,将jdk 1.7添加到eclipse中,以下屏幕截图如下

click Windows->Prefrence 单击Windows->Prefrence

在此处输入图片说明

then click Add... 然后点击Add...

在此处输入图片说明

then next 然后next

在此处输入图片说明

select the jre directory, then click finish button, you will find the jdk7 choice 选择jre目录,然后单击完成按钮,您将找到jdk7选择

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM