scotty1024, I've got some questions about the BBeBook application you posted here earlier. I tried to compile it as a JAR on Mac OS X 10.3.9, and it's been an interesting journey. (I've been doing some research online, but haven't been able to find answers, so I'm tossing this to you.)
After learning how to build a Java Tool in Xcode 1.5, I tossed all your Java files into the project, then told it to build. After much experimentation, I learned it needed the following public Java libraries (which I added as JARs):
xpp3 version 1.1.4
http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/
JPedal version 2.40b15
http://www.jpedal.org
PDFBox version 0.7.1
http://www.pdfbox.org
I got it to build the JAR, but when I try to run it, I get this error:
Code:
Exception in thread "main" java.lang.NoClassDefFoundError: org/pdfbox/util/PDFStreamEngine
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
Executable “java” has exited with status 1.
In your comments in PageParser.java, you refer to PDFBox 0.7.1, so I felt it was the right version to use. Was it?
I checked the version of Java by going to Terminal and typing "
java -version", and it returned this:
Code:
java version "1.4.2_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-233)
Java HotSpot(TM) Client VM (build 1.4.2-56, mixed mode)
In plainer English, I'm running J2SE 1.4.2.
I built it with different versions of the Java libraries because, when I used the most recent versions of all three, I got these errors:
BBeBook.java:341: cannot resolve symbol : method setPreferredSize (java.awt.Dimension)
BBeBook.java:1383: cannot resolve symbol : method enableHighQualityMode ()
BBeBook.java:1387: cannot resolve symbol : method setThumbnaiImageTransparency (boolean)
The first method, setPreferredSize(), is not in J2SE version 1.4.2. It is a method in JComponent, but not JFrame, which is how you use it.
The last two methods are in JPedal, but are not available in versions 3.00 or versions 2.80. They have been removed from PdfDecoder's methods. (JPedal no longer distributes any versions older than 2.80 on their website, but I had version 2.40 from your posting in the Yahoo! Librie group.)
When I comment out all three methods, compile the JAR, then run it, I get the same exception thrown as above.
If you need more info, let me know.