Build failed in module 9 | Selenium Forum
R
ramu.gande Posted on 03/07/2019

init:

clean:
[delete] Deleting directory C:\Users\Admin\Desktop\JunitProject3\build

compile:
[echo] making directory...
[mkdir] Created dir: C:\Users\Admin\Desktop\JunitProject3\build
[echo] classpath------: F:\xjars\junit.jar:F:\xjars\org.hamcrest.core_1.3.0.v20180420-1519.jar
[echo] compiling...
[javac] C:\Users\Admin\Desktop\JunitProject3\build.xml:79: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 4 source files to C:\Users\Admin\Desktop\JunitProject3\build
[javac]
[javac] WARNING
[javac]
[javac] The -source switch defaults to 9 in JDK 9.
[javac] If you specify -target 1.5 you now must also specify -source 1.5.
[javac] Ant will implicitly add -source 1.5 for you. Please change your build file.
[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
C:\Users\Admin\Desktop\JunitProject3\build.xml:79: Compile failed; see the compiler error output for details.

Total time: 0 seconds

C:\Users\Admin\Desktop\JunitProject3>

 

please what can be the solution 

thanks

Ramu


A
Ashish Thakur Replied on 03/07/2019

As i noticed that you are using JDK9, I would suggest you using jdk 8 in your project

Additionally, in build.xml change the source from 1.5 to 1.8


R
ramu.gande Replied on 06/07/2019

thank you will try


A
Ashish Thakur Replied on 08/07/2019

Is the issue resolved?