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
java.lang.NoClassDefFoundError: org.apache.fontbox.afm.FontMetric at org.apache.pdfbox.pdmodel.font.PDFont.getAFM( at org.apache.pdfbox.pdmodel.font.PDFont.getFontWidthFromAFMFile( at org.apache.pdfbox.pdmodel.font.PDSimpleFont.getFontWidth( at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText( at org.apache.pdfbox.util.operator.ShowText.process( at org.apache.pdfbox.util.PDFStreamEngine.processOperator( at org.apache.pdfbox.util.PDFStreamEngine.processSubStream( at org.apache.pdfbox.util.PDFStreamEngine.processStream( at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage( at org.apache.pdfbox.pdmodel.PDPage.convertToImage( at org.apache.pdfbox.util.PDFImageWriter.writeImage( at by: java.lang.ClassNotFoundException: org.apache.fontbox.afm.FontMetric at at java.lang.ClassLoader.loadClass( at sun.misc.Launcher$AppClassLoader.loadClass( at java.lang.ClassLoader.loadClass( ... 12 more