i use Linux Centos 7 + git + ant
trying to build my first project build.xml <project name="simpleCompile" basedir="."> <property name="src.dir" value="src" /> <property name="build.dir" value="build" /> <property name="classes.dir" value="${build.dir}/classes" /> <property name="jar.dir" value="${build.dir}/jar" /> <property name="main-class" value="sample.Sample" /> <target name="clean"> <delete dir="${classes.dir}" /> </target> <path id="classpath"> <fileset dir="${jar.dir}"> <include name="*.jar" /> </fileset> <fileset dir="${classes.dir}"> <include name="/*.class" /> </fileset> </path> <target name="compile"> <mkdir dir="${classes.dir}" /> <javac srcdir="${src.dir}" destdir="${classes.dir}" debug="true" > <classpath refid="classpath" /> </javac> </target> <target name="jar" depends="compile"> <mkdir dir="${jar.dir}" /> <jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${classes.dir}"> <manifest> <attribute name="Main-Class" value="${main-class}" /> </manifest> </jar> </target> <target name="clean-build" depends="clean,jar" /> </project> log: Started by user anonymous <http://localhost:8080/user/null> Building in workspace /var/lib/jenkins/workspace/sudoku > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > /usr/bin/git config remote.origin.url /home/sudoku # timeout=10 Fetching upstream changes from /home/sudoku > /usr/bin/git --version # timeout=10 > /usr/bin/git -c core.askpass=true fetch --tags --progress /home/sudoku > +refs/heads/*:refs/remotes/origin/* > /usr/bin/git rev-parse refs/remotes/origin/master^{commit} # timeout=10 > /usr/bin/git rev-parse refs/remotes/origin/origin/master^{commit} # > timeout=10 Checking out Revision dda3482f283897aaac6714368d38e801879700cf (refs/remotes/origin/master) > /usr/bin/git config core.sparsecheckout # timeout=10 > /usr/bin/git checkout -f dda3482f283897aaac6714368d38e801879700cf > /usr/bin/git rev-list dda3482f283897aaac6714368d38e801879700cf # timeout=10 [sudoku] $ ant jar Buildfile: /var/lib/jenkins/workspace/sudoku/build.xml *compile*: [javac] /var/lib/jenkins/workspace/sudoku/build.xml:25: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 1 source file to /var/lib/jenkins/workspace/sudoku/build/classes [javac] [parsing started RegularFileObject[/var/lib/jenkins/workspace/sudoku/Sudoku.java]] [javac] [parsing completed 21ms] [javac] [search path for source files: /var/lib/jenkins/workspace/sudoku] [javac] [search path for class files: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/lib/resources.jar,/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/lib/rt.jar,/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/lib/sunrsasign.jar,/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/lib/jsse.jar,/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/lib/jce.jar,/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/lib/charsets.jar,/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/lib/rhino.jar,/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/lib/jfr.jar,/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/classes,/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/lib/ext/dnsns.jar,/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/lib/ext/localedata.jar,/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/lib/ext/pulse-java.jar,/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/lib/ext/sunjce_provider.jar,/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/lib/ext/sunpkcs11.jar,/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/lib/ext/zipfs.jar,/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/lib/ext/sunec.jar,/var/lib/jenkins/workspace/sudoku/build/classes,/usr/share/java/ant.jar,/usr/share/java/ant-launcher.jar,/usr/share/java/jaxp_parser_impl.jar,/usr/share/java/xml-commons-apis.jar,/usr/lib/jvm/java/lib/tools.jar,/usr/share/ant/lib/ant-bootstrap.jar] [javac] [loading ZipFileIndexFileObject[/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/lib/ct.sym(META-INF/sym/rt.jar/java/lang/Object.class)]] [javac] /var/lib/jenkins/workspace/sudoku/Sudoku.java:6: error: cannot find symbol [javac] static Set empty = new Set(9); [javac] ^ [javac] symbol: class Set [javac] location: class Sudoku [javac] /var/lib/jenkins/workspace/sudoku/Sudoku.java:7: error: cannot find symbol [javac] static Set fullSet; [javac] ^ [javac] symbol: class Set [javac] location: class Sudoku [javac] /var/lib/jenkins/workspace/sudoku/Sudoku.java:9: error: cannot find symbol [javac] static Set [][] allowedSets; [javac] ^ [javac] symbol: class Set [javac] location: class Sudoku [javac] [loading ZipFileIndexFileObject[/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/lib/ct.sym(META-INF/sym/rt.jar/java/lang/String.class)]] [javac] /var/lib/jenkins/workspace/sudoku/Sudoku.java:145: error: cannot find symbol [javac] public static int getElement(Set s) [javac] ^ [javac] symbol: class Set [javac] location: class Sudoku [javac] [checking Sudoku] [javac] [loading ZipFileIndexFileObject[/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/lib/ct.sym(META-INF/sym/rt.jar/java/lang/AutoCloseable.class)]] [javac] /var/lib/jenkins/workspace/sudoku/Sudoku.java:6: error: cannot find symbol [javac] static Set empty = new Set(9); [javac] ^ [javac] symbol: class Set [javac] location: class Sudoku [javac] /var/lib/jenkins/workspace/sudoku/Sudoku.java:34: error: cannot find symbol [javac] allowedSets = new Set[9][9]; [javac] ^ [javac] symbol: class Set [javac] location: class Sudoku [javac] /var/lib/jenkins/workspace/sudoku/Sudoku.java:36: error: cannot find symbol [javac] Set fullSet = new Set(9); [javac] ^ [javac] symbol: class Set [javac] location: class Sudoku [javac] /var/lib/jenkins/workspace/sudoku/Sudoku.java:36: error: cannot find symbol [javac] Set fullSet = new Set(9); [javac] ^ [javac] symbol: class Set [javac] location: class Sudoku [javac] /var/lib/jenkins/workspace/sudoku/Sudoku.java:44: error: cannot find symbol [javac] allowedSets[i][j] = new Set(fullSet); [javac] ^ [javac] symbol: class Set [javac] location: class Sudoku [javac] [loading ZipFileIndexFileObject[/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/lib/ct.sym(META-INF/sym/rt.jar/java/io/InputStreamReader.class)]] [javac] [loading ZipFileIndexFileObject[/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/lib/ct.sym(META-INF/sym/rt.jar/java/lang/System.class)]] [javac] [loading ZipFileIndexFileObject[/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/lib/ct.sym(META-INF/sym/rt.jar/java/io/InputStream.class)]] [javac] [loading ZipFileIndexFileObject[/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/lib/ct.sym(META-INF/sym/rt.jar/java/io/BufferedReader.class)]] [javac] [loading ZipFileIndexFileObject[/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/lib/ct.sym(META-INF/sym/rt.jar/java/io/Reader.class)]] [javac] [loading ZipFileIndexFileObject[/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/lib/ct.sym(META-INF/sym/rt.jar/java/io/IOException.class)]] [javac] [loading ZipFileIndexFileObject[/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/lib/ct.sym(META-INF/sym/rt.jar/java/lang/Exception.class)]] [javac] [loading ZipFileIndexFileObject[/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/lib/ct.sym(META-INF/sym/rt.jar/java/lang/Throwable.class)]] [javac] [loading ZipFileIndexFileObject[/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/lib/ct.sym(META-INF/sym/rt.jar/java/io/PrintStream.class)]] [javac] [loading ZipFileIndexFileObject[/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/lib/ct.sym(META-INF/sym/rt.jar/java/io/FilterOutputStream.class)]] [javac] [loading ZipFileIndexFileObject[/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/lib/ct.sym(META-INF/sym/rt.jar/java/io/OutputStream.class)]] [javac] [loading ZipFileIndexFileObject[/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/lib/ct.sym(META-INF/sym/rt.jar/java/io/FileReader.class)]] [javac] [loading ZipFileIndexFileObject[/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/lib/ct.sym(META-INF/sym/rt.jar/java/io/FileDescriptor.class)]] [javac] [loading ZipFileIndexFileObject[/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/lib/ct.sym(META-INF/sym/rt.jar/java/io/File.class)]] [javac] [total 511ms] [javac] 9 errors BUILD FAILED/var/lib/jenkins/workspace/sudoku/build.xml:25: Compile failed; see the compiler error output for details. Total time: 1 second Build step 'Invoke Ant' marked build as failure Finished: FAILURE -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/57f5860c-e131-4bb5-8d82-c10a4068574c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.