0
나는 lucene 6.6.0 및 pdfbox 2.0.7에서 pdf 파일 색인을 생성하려고하는데 다음 오류가 발생합니다.컴파일 할 수없는 소스 코드 - 오류가있는 sym 유형 : org.apache.lucene.document.FieldType.setIndexed PDF 파일 색인 생성 오류시
run:
Indexing ke folder: 'D:\Kuliah\rancangan document indexing\dir-index\'...
Indexing PDF document: D:\Kuliah\rancangan document indexing\dir-pdf\dua.pdf
Exception in thread "main" java.lang.ExceptionInInitializerError
at tigasepuluh.Playground.indexDocs(Playground.java:110)
at tigasepuluh.Playground.indexDocs(Playground.java:88)
at tigasepuluh.Playground.main(Playground.java:65)
Caused by: java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: org.apache.lucene.document.FieldType.setIndexed
at org.apache.pdfbox.examples.lucene.LucenePDFDocument.<clinit>(LucenePDFDocument.java:123)
... 3 more
C:\Users\abc\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1
BUILD FAILED (total time: 5 seconds)
을 (수정 됨) 그리고 이것은 내 전체 코드에
코드 및 오류 메시지를 텍스트로 게시하십시오. 귀하의 회신에 감사드립니다. –
. 그 죄송합니다. – ridhopratama
DM에서 물어 본 질문 (LucenePDFDocument.java) - 예, src 디렉토리에 복사하십시오. 그러나 패키지 선언을 조정하거나 파일을 이동해야합니다. Netbeans은 무엇을해야하는지 제안 할 것입니다. –