Hear us Roar
Article:
 |
|
Using Lucene to Search Java Source Code
|
| Subject: |
|
Why this error happen when the codes are executed |
| Date: |
|
2009-05-13 11:10:48 |
| From: |
|
DaiThang
|
|
|
Thank you for your article. It is useful !
Please help me to explain the following problem:
I downloaded your code samples, and using Eclipse for checking and executing these classes,
but the editor notices (highlight) an error at: "_unit = (CompilationUnit) _parser.createAST( null);"
The following is result in the Console:
"Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The type org.eclipse.core.runtime.IProgressMonitor cannot be resolved. It is indirectly referenced from required .class files
The method createAST(IProgressMonitor) from the type ASTParser refers to the missing type IProgressMonitor
at com.infosys.lucene.code.JavaParser.<init>(JavaParser.java:35)
at com.infosys.lucene.code.JavaSourceCodeIndexer.indexFile(JavaSourceCodeIndexer.java:65)
at com.infosys.lucene.code.JavaSourceCodeIndexer.indexDirectory(JavaSourceCodeIndexer.java:57)
at com.infosys.lucene.code.JavaSourceCodeIndexer.main(JavaSourceCodeIndexer.java:40)"
|
|
| |