java.lang.NoClassDefFoundError: org/fontbox/cmap/CMapParser | 8 months ago
Do you find the tips below useful? Click on the to mark them and say thanks to rafael and Rafael Fischer Viola . Or join the community to write better ones.
  1. 0

    try to convert pdf to txt using java program - Software Development | DaniWeb | 8 months ago
    java.lang.NoClassDefFoundError: org/fontbox/cmap/CMapParser
  2. 0

    PDF Text Parser: Converting PDF to Text in Java using PDFBox | 4 months ago
    java.lang.NoClassDefFoundError: org/fontbox/afm/AFMPa rser
  3. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add with the following: <groupId>com.fasterxml</groupId> <artifactId>classmate</artifactId> <version>1.0</version>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    NoClassDefFoundError means java has failed to find a class you're trying to instantiate, look if you've added the class you're trying to instantiate to the dependencies.
  6. 0
    samebug tip
    A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException


  2. Java RT
    1.$ Source)
    2. Method)
    3. Source)
    4. java.lang.ClassLoader.loadClass(Unknown Source)
    5. sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    6. java.lang.ClassLoader.loadClass(Unknown Source)
    6 frames
  3. PDFBox - Java PDF Library
    1. org.pdfbox.pdmodel.font.PDFont.parseCmap(
    2. org.pdfbox.pdmodel.font.PDFont.encode(
    3. org.pdfbox.util.PDFStreamEngine.showString(
    4. org.pdfbox.util.operator.ShowText.process(
    5. org.pdfbox.util.PDFStreamEngine.processOperator(
    6. org.pdfbox.util.PDFStreamEngine.processSubStream(
    7. org.pdfbox.util.PDFStreamEngine.processStream(
    8. org.pdfbox.util.PDFTextStripper.processPage(
    9. org.pdfbox.util.PDFTextStripper.processPages(
    10. org.pdfbox.util.PDFTextStripper.writeText(
    11. org.pdfbox.util.PDFTextStripper.getText(
    11 frames
  4. Unknown
    1. PDFTextParser.pdftoText(
    2. PDFTextParser.main(
    2 frames