javac1.8 class not found

后端 未结 12 1838
予麋鹿
予麋鹿 2020-11-27 13:10

I have installed two jdks - jdk 1.5 and jdk 1.8. I have following Ant build.xml config file :


    

        
12条回答
  •  不知归路
    2020-11-27 14:04

    JAVA_HOME = C:\Program Files (x86)\Java\jdk1.5.0_16
    JRE_HOME = C:\Program Files (x86)\Java\jre1.5.0_16
    

    Your JAVA_HOME and JRE_HOME are set to the Java 1.5 installation hence 1.8 binaries (like javac) are not found. Set them to the Java 1.8 installation and you should be fine.

提交回复
热议问题