[
https://issues.apache.org/jira/browse/PDFBOX-3033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14961108#comment-14961108
]
Tilman Hausherr commented on PDFBOX-3033:
-----------------------------------------
I get that one only if I'm in the wrong directory. When I'm in the target dir,
I get this:
{code}
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/pdfbox/text/PDFTextStripper
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
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)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
...
{code}
solution is to add more jar files in the classpath.
> Usage methods references incorrect package
> ------------------------------------------
>
> Key: PDFBOX-3033
> URL: https://issues.apache.org/jira/browse/PDFBOX-3033
> Project: PDFBox
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.0.0
> Reporter: Ben McCann
> Assignee: Tilman Hausherr
> Priority: Minor
> Fix For: 2.0.0
>
>
> See
> https://github.com/apache/pdfbox/blob/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/PrintTextLocations.java#L106
> It references the "pdmodel" package instead of "util"
> A better solution would be to do PrintTextLocations.class.getName() instead
> of hardcoding
> Edit: same problem in several other examples, e.g. PrintImageLocations.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]