Setting JDK in Eclipse

前端 未结 6 1376
旧时难觅i
旧时难觅i 2020-11-22 16:37

I have two JDKs, for Java 6 and 7.

I want to build my project using both. Initially we only built against 1.6. I see in my project setting I can select 1.5, 1.6 1.7

6条回答
  •  庸人自扰
    2020-11-22 17:04

    Eclipse's compiler can assure that your java sources conform to a given JDK version even if you don't have that version installed. This feature is useful for ensuring backwards compatibility of your code.

    Your code will still be compiled and run by the JDK you've selected.

提交回复
热议问题