OCR4all / LAREX

A semi-automatic open-source tool for Layout Analysis and Region EXtraction on early printed books.
MIT License
179 stars 33 forks source link

java.lang.ClassFormatError: Truncated class file #250

Closed ouromi closed 3 years ago

ouromi commented 3 years ago

When I click 'Open Larex' in OCR4all I get this error. I have already switched to Java v8 but it hasn't fixed the problem. Am I missing something?

image image

maxnth commented 3 years ago

I have already switched to Java v8 but it hasn't fixed the problem.

If you already tried to build LAREX with another Java version it might be possible that some corrupted files from that attempt are still stuck in the Maven cache.

Clearing the Maven cache by deleting the ~/.m2/repository and then running mvn clean install with the LAREX pom.xml to start a clean build might fix this.

maxnth commented 3 years ago

I'll close this issue but in case the above mentioned steps didn't work, feel free to reopen the issue.