ClassNotFoundException

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Generator for Java (v8)  /  ClassNotFoundException

DynamicPDF Generator for Java (v8) Forum

 Apr 07 2016 12:38 PM
I'm attempting to run the HelloWorld example included with the product download, but I'm running into a ClassNotFoundException.  I'm not sure if it's something I'm doing or something else.

javac version:
javac 1.8.0_77

Everything compiled fine with:
javac *.java -classpath "....."

Then I am unable to run using:
java HelloWorld -classpath "....."

Exception in thread "main" java.lang.NoClassDefFoundError: com/cete/dynamicpdf/PageElement
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
        at java.lang.Class.privateGetMethodRecursive(Unknown Source)
        at java.lang.Class.getMethod0(Unknown Source)
        at java.lang.Class.getMethod(Unknown Source)
        at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
        at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.cete.dynamicpdf.PageElement
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 7 more
 Apr 07 2016 4:49 PM
Posted by a ceTe Software moderator
Hello,

This error is most likely caused due to an incorrect class path. Here is a link to the help topic on deployment and installation of DynamicPDF.

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 9:26 PM.