error: Source option 5 is no longer supported. Use 6 or later

386 views
Skip to first unread message

Mohsen Pahlevanzadeh

unread,
Jul 14, 2018, 7:27:35 PM7/14/18
to zekr
Hello,
I use the following java version:
% javac --version
javac 10.0.1

Now When I use `ant` or `ant compile` command I get the following errors:


---------------------------------------------------------------------
Buildfile: /home/mohsen/src-compiled/zekr/zekr-1.1.0+repack/build.xml

compile:
    [javac] /home/mohsen/src-compiled/zekr/zekr-1.1.0+repack/build.xml:89: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 254 source files to /home/mohsen/src-compiled/zekr/zekr-1.1.0+repack/build/classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 5
    [javac] error: Source option 5 is no longer supported. Use 6 or later.
    [javac] error: Target option 1.5 is no longer supported. Use 1.6 or later.

BUILD FAILED
/home/mohsen/src-compiled/zekr/zekr-1.1.0+repack/build.xml:89: Compile failed; see the compiler error output for details.


Total time: 0 seconds
-----------------------------------------------------------------------


How can I solve it?


--mohsen



Reply all
Reply to author
Forward
0 new messages