简体   繁体   中英

Using jdk 1.6 and jdk 1.7 for different eclipse program

i have two different Eclipse(Java EE and android) and two jdk(jdk6,jdk7)

i have confuse how to set java EE eclipse in jdk6 and android eclipse in jdk7

is this possible?

You could set them in the preferences .

Window --> Preferences --> Java --> Installed JREs

In this, you can add the JREs you want to use for the eclipse. Thus in your case, for Java EE eclipse, add the JDK 1.6 and for Android eclipse, add the JDK 1.7 .

Continuing the answer of @RJ I would like to add that even if you don't have two separate eclipses.

You can use project specific settings and use different different JRE for different projects.

Right click on Project --> Libraries ---> Remove JRE you dont want ---> Add other JRE

Windows -> Preferences

Then simply type jdk in the search box. Window is shown below. You can add your JDK here.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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