java - Compile failed when running a lucene example -


after fixing error tools.jar , junit.jar not found (thanks stack overflow) tried compile example given in "lucene in action" book. when compiled getting error. can tell error getting , how fix it?


total time: 0 seconds  e:\luceneinaction>ant indexer buildfile: e:\luceneinaction\build.xml  check-environment:  compile: [javac] e:\luceneinaction\build.xml:66: warning: 'includeantruntime' not set, defaulting build.sysclasspath=last; set false repeatable builds [javac] compiling 104 source files e:\luceneinaction\build\classes [javac] e:\luceneinaction\src\lia\analysis\analyzerutils.java:3: warning: [d eprecation] assert in junit.framework has been deprecated [javac] import junit.framework.assert; [javac]                       ^ [javac] e:\luceneinaction\src\lia\handlingtypes\html\nekohtmlhandler.java:18 : error: package org.apache.html.dom not exist [javac] import org.apache.html.dom.htmldocumentimpl; [javac]                           ^ [javac] e:\luceneinaction\src\lia\analysis\analyzerutils.java:90: warning: [ deprecation] assert in junit.framework has been deprecated [javac]     assert.assertequals(strings.length, tokens.length); [javac]     ^ [javac] e:\luceneinaction\src\lia\analysis\analyzerutils.java:93: warning: [ deprecation] assert in junit.framework has been deprecated [javac]       assert.assertequals("index " + i, strings[i], tokens[i].termte xt()); [javac]       ^ [javac] e:\luceneinaction\src\lia\handlingtypes\html\nekohtmlhandler.java:32 : error: cannot find symbol [javac]       new htmldocumentimpl().createdocumentfragment(); [javac]           ^ [javac]   symbol:   class htmldocumentimpl [javac]   location: class nekohtmlhandler [javac] note: input files use unchecked or unsafe operations. [javac] note: recompile -xlint:unchecked details. [javac] 2 errors [javac] 3 warnings  build failed e:\luceneinaction\build.xml:66: compile failed; see compiler error output fo r details.  total time: 2 seconds 

sorry dont have enough reputaion post image

tt complaining jar contains htmldocumentimpl not being on classpath. maybe xerces? specific version. junits warning assert comes org.framework. can update junit jar file or leave since isnt cause of error.

the errors due jar not being on classpath. in guess xerces


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -