javac1.8 class not found

后端 未结 12 1806
予麋鹿
予麋鹿 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:45

    I tried all of the other solutions, but none worked. I finally found an approach that worked for me in Eclipse:

    • Right click on the ant task name, e.g. "compileCustomSrc" in the ant window.
    • Choose Run As | External Tool Configurations
    • Then on the JRE tab, choose Separate JRE: Java SE7 or whatever your java 7 is named, then hit Apply and then Run.

    Your ant task will be executed, and will build correctly!

提交回复
热议问题