managing multiple versions of JDK: invalid source release error

前端 未结 4 466
抹茶落季
抹茶落季 2021-01-20 02:29

I have jdk 1.6 and 1.7 installed.

I have updated my JAVA_HOME variable to

C:\\Program Files\\Java\\jdk1.6.0_24;C:\\Program Files\\Java\\jdk1.7.0
         


        
4条回答
  •  醉梦人生
    2021-01-20 03:05

    Your jdk is still pointing to JDK 1.6. javac is bundled with jdk, while java -version ideally runs even if jre is installed properly.

提交回复
热议问题