![]() |
#1 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Nov 2006
Device: Sony Reader
|
How to run BBeBook.zip
My apologies if this is covered elsewhere, but I've searched the forums, Yahoo group and google to no avail.
I've downloaded the BBeBook-0.1.zip, but cannot get it to run properly on my PC. Is there a list of requirements anywhere or a simple "how to" document for this? Any assistance would be appreciated, as I've also seen this question asked elsewhere. Thanks |
![]() |
![]() |
![]() |
#2 |
Enthusiast
![]() Posts: 35
Karma: 12
Join Date: Oct 2006
Device: Amazon Kindle, Sony Reader
|
I've wondered the same thing myself. I downloaded the zip but hit a wall because there were only .java files, nothing executable. Does anybody have tips for folks who aren't Java experts that want to just run the program?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Here's a bash script I use on linux
Code:
#!/bin/sh dir=/home/kovid/build/BBeBook-0.1 CLASSPATH=$dir/jpedalSTD.jar:$dir/kxml2-2.3.0.jar:$dir/PDFBox-0.7.3.jar:$dir java -cp $CLASSPATH BBeBook Last edited by kovidgoyal; 11-22-2006 at 11:55 PM. |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Actually, since I find BBeBook cumbersome to use from the command line here's a little package that makes running it on the command-line really easy. Just extract, edit makebbeb changing the line
Code:
bbebb_book_directory = "/home/kovid/build/BBeBook-0.1" Code:
python makebbeb If anyone has a problem with me redistributing BBeBook and its java dependencies, let me know and I'll take it down. |
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 4
Karma: 18
Join Date: Oct 2006
Location: Forest Hills, NY
Device: Sony eReader PRS-500
|
cool thanks!!
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Nov 2006
|
Hi kovidgoyal,
after I replaced the colons by semicolons in the java classpath in the python script, it runs. However, I get this strange error message. Have you any idea why there should be problems creating or accessing the temp file? Axel ----------------------------------------------- Error parsing metadata: c:\temp\tmptxqd9u (The process cannot access the file because it is being used by another process) java.io.FileNotFoundException: c:\temp\tmptxqd9u (The process cannot access the file because it is being used by another process) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.jav a:106) at java.io.FileReader.<init>(FileReader.java:55) at BBeBook.parseConfig(BBeBook.java:659) at BBeBook.makeBook(BBeBook.java:596) at BBeBook.main(BBeBook.java:293) No <File> in config file. BBeBook returned: 1 |
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That's because windows being a pain doesn't allow simultaneous access to a file from two processes. Here's a version of makebbeb that I hope will work with windows as well, though I haven't tested it.
|
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Nov 2006
|
thanks, now I'm one step further, but got other problems :-(
I tried to convert 3 different PDFs and got different types of errors from the pdfbox.jar. Did you actually manage to successfully convert a PDF ? axel ------- Exception in thread "main" java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider at org.pdfbox.pdmodel.PDDocument.openProtection(PDDoc ument.java:905) --------- Exception in thread "main" java.lang.ClassCastException: PageParser at org.pdfbox.util.operator.pagedrawer.SetLineWidth.p rocess(SetLineWidth.java:63) ------------- Exception in thread "main" java.lang.ClassCastException: PageParser at org.pdfbox.util.operator.pagedrawer.AppendRectangl eToPath.process(AppendRectangleToPath.java:58) |
![]() |
![]() |
![]() |
#9 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No I've only used it for html. Fortunately nothing I want to read is in PDF form.
|
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Nov 2006
|
Lucky guy...
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I edit a BBeBook? | dickon25 | Sony Reader | 5 | 09-14-2010 10:34 AM |
BBeBook error | einKI | Sony Reader | 0 | 06-10-2007 01:40 AM |
how to run BBeBook.java | amudha | Sony Reader | 1 | 03-08-2007 07:38 PM |