Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    A few things cause this exception:
    1) Check if you have all jars and if they're in the correct path.
    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.

  2. ,

    you can change your scala version to 2.11.11

Solutions on the web

via Coderanch by Anup Bansal, 1 year ago
org.apache.fontbox.afm.FontMetric
java.lang.NoClassDefFoundError: org.apache.fontbox.afm.FontMetric at org.apache.pdfbox.pdmodel.font.PDFont.getAFM(PDFont.java:313) at org.apache.pdfbox.pdmodel.font.PDFont.getFontWidthFromAFMFile(PDFont.java:262) at org.apache.pdfbox.pdmodel.font.PDSimpleFont.getFontWidth(PDSimpleFont.java:175) at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:323) at org.apache.pdfbox.util.operator.ShowText.process(ShowText.java:45) at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:552) at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:248) at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:207) at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:106) at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:698) at org.apache.pdfbox.util.PDFImageWriter.writeImage(PDFImageWriter.java:137) at com.abnarmo.nl.scan.pdfconvertor.split.PDFToImage.main(PDFToImage.java:204)Caused by: java.lang.ClassNotFoundException: org.apache.fontbox.afm.FontMetric at java.net.URLClassLoader.findClass(URLClassLoader.java:419) at java.lang.ClassLoader.loadClass(ClassLoader.java:643) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:300) at java.lang.ClassLoader.loadClass(ClassLoader.java:609) ... 12 more