Upgrade Eclipse java compiler

后端 未结 7 2172
南笙
南笙 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:11

    Follow these steps:

    1. Download last JDK and install it.
    2. Go to C:/Program files/Java and delete the previous JDK.
    3. Update your JAVA_HOME and PATH Environment Variables with the new JDK.
    4. Open Eclipse and in Windows > Preference > Java > Installed JRE, set newer version here

    If there is a broken link with a jar in previous JDK, Eclipse will notify you. I solved in this way the problem with tools.jar ant reference, but it is a general way to find the solution.

提交回复
热议问题