After build.xml setup I got build failure-mod8 | Selenium Forum
M
Posted on 22/10/2016
[15:42:00] bcamayu26: when I'm doing module 8 in selenium, after modify the build.xml file, I got the below issue and build getting faild.
[15:42:06] bcamayu26: The -source switch defaults to 1.8 in JDK 1.8.
[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 1.5
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] C:\workspace\Module8_Junit_Ant\src\testcases\FirstTestCase.java:3: error: package org.junit does not exist
[15:42:32] bcamayu26: can you advise me how to overcome this issue plz?

M
Replied on 24/10/2016

add junit jar files in you [color=#FF0000:17rls3d5]F:/Jars[/color:17rls3d5] folder.


M
Replied on 24/10/2016

thanks for your response, can you tell in which folder from the Selenium_Pack_7_July download I can get the all .jar files. I attached only below jar files in my F drive. please refer my attachment. tkx

Responsive image

M
Replied on 25/10/2016

in that folder add junit jar file.

www.java2s.com › Jar File Download › junit4