javac1.8 class not found

后端 未结 12 1829
予麋鹿
予麋鹿 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 13:49

    I had this same issue. I had JAVA_HOME and JRE_HOME set correctly. I also had Ant > 1.9.

    What I did to fix it is go into Eclipse to Window -> Preferences. Expand Ant and select Runtime. By default the Classpath tab should be selected and on the right hand side there is a button called "Ant Home". Click this button and double check it is pointed to your Ant folder.

提交回复
热议问题