ClassNotFoundException

ClassNotFoundException

Forum member · Apr 7, 2016
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

Re: ClassNotFoundException

Support · Apr 7, 2016
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.