Upgrade Eclipse java compiler

后端 未结 7 2026
南笙
南笙 2021-02-20 17:32

I started using Ant, that ships with Eclipse. It annoys me, that I get hundreds of warnings in the lines of:

[javac] warning: java\\io\\BufferedInputStr

7条回答
  •  暖寄归人
    2021-02-20 18:00

    Thanks, I figured it out.

    For those whom it may concern, to make sure Ant uses the Java 7 compiler:

    Preferences -> Ant -> Runtime -> Classpath -> Global Entries
    

    Click Add External Jars and put your tools.jar here.

    It will look something like C:\Program Files\Java\jdk1.7.0_03\lib

提交回复
热议问题