managing multiple versions of JDK: invalid source release error

前端 未结 4 489
抹茶落季
抹茶落季 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:09

    The simplest solution would be to use the java_home tool.

    /usr/libexec/java_home -v 1.7.0_51 --exec javac -version
    

提交回复
热议问题