problem in ant build invalid target release

前端 未结 5 1929
执念已碎
执念已碎 2021-01-17 10:41

problem in ant build

[javac] Compiling 86 source files to F:\\XXX\\classes
    [javac] javac: invalid target release: 1.6
    [javac] Usage: javac 

        
5条回答
  •  没有蜡笔的小新
    2021-01-17 11:29

    Maybe need to make the ant builder match your jre.

    At Windows->Preferences->Ant->Runtime->Classpath->Global Entries, add <*your jre home*>/lib/tools.jar and move it up.

提交回复
热议问题