djmdjm/jBCrypt

Build failed: Source option 6 is no longer supported. Use 7 or later.

mbucc opened this issue · 0 comments

mbucc commented
% ant      
Buildfile: /Users/markbucciarelli/src/github/jBCrypt/build.xml

init:

build:
    [javac] build.xml:20: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 1 source file to /Users/markbucciarelli/src/github/jBCrypt/build
    [javac] 
    [javac]           WARNING
    [javac] 
    [javac] The -source switch defaults to 9 in JDK 9.
    [javac] If you specify -target 1.6 you now must also specify -source 1.6.
    [javac] Ant will implicitly add -source 1.6 for you.  Please change your build file.
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 6
    [javac] error: Source option 6 is no longer supported. Use 7 or later.
    [javac] error: Target option 6 is no longer supported. Use 7 or later.

BUILD FAILED
build.xml:20: Compile failed; see the compiler error output for details.

Total time: 0 seconds

% ant -version
Apache Ant(TM) version 1.10.12 compiled on October 13 2021

% java -version
java version "17.0.5" 2022-10-18 LTS
Java(TM) SE Runtime Environment (build 17.0.5+9-LTS-191)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.5+9-LTS-191, mixed mode, sharing)

%