Hi,
thank you all for your input. I could solve my issue it with the help of
Florian.
I'm marking it as solved for future references before opening my next
issue :).
Greetings,
Steffen
Am 07/10/13 14:41, schrieb Ian C:
Hi Steffen,
I have Eclipse building the ODFToolkit and in order to do so I created an
SVN repository as per the instructions on the ODFToolkit web site (
http://incubator.apache.org/odftoolkit/source.html) and used Maven to build
and download everything. Then there is a Maven way to generate and Eclipse
project file (mvn eclipse:eclipse). Import that into Eclipse and it should
be okay.
This was all on a Linux machine though.
I also found an Eclipse a build issue but if you get that far I can explain
what I did.
On Wed, Jul 10, 2013 at 12:54 PM, Florian Hopf <[email protected]> wrote:
Hi,
On 09.07.2013 16:17, Steffen Börsig wrote:
Hi,
an update: with version 0.5 it works for me right off the bat!
I can only assume that there's something wrong with the dependencies in
0.6
Maybe you can look into it.
that's true, with version 0.6 you need more dependencies. Where did you
read on which dependencies to include? I am asking because we should change
the instructions if those are on our website.
Unfortunately we don't really have a current list of all actually required
dependencies. The CHANGES files contains some links and this wiki page has
a list of all dependencies: https://cwiki.apache.org/**
confluence/display/ODFTOOLKIT/**0.6-incubating<https://cwiki.apache.org/confluence/display/ODFTOOLKIT/0.6-incubating>
This is not really convenient, I am sorry. The project currently is mainly
targeted at being used with Maven.
Regards
Florian
Regards,
Steffen
Am 07/09/13 15:39, schrieb Steffen Börsig:
Hi,
I'm currently thinking about switching to ODFDOM from the UNO API. I
tried to make the first example work but I'm stuck at the beginning
already.
I included all jars from the latest ODF Toolkit[1] and Xerces 2.11 [2].
I added all the jars into my eclipse project, namely:
xslt-runner-1.2.2-incubating.**jar
simple-odf-0.8-incubating.jar
odfdom-java-0.8.9-incubating.**jar
xslt-runner-task-1.2.2-**incubating.jar
xerces/xml-apis.jar
xerces/resolver.jar
xerces/serializer.jar
xerces/xercesImpl.jar
xerces/xercesSamples.jar
But every time I try to get a new TextDocument I'm stuck because the
clerezza utils library is not present. The error is attached below
[3]. I tried to include it seperately but got stuck right after it
again with the next class that was not found. I stopped after the
fifth seperately included jar found in some maven repositories.
It seems that I have some major dependency problem and would like to
get some input on it. I couldn't find any similar problem with google.
Maybe you spot the mistake.
Thanks in advance.
Greetings,
Steffen
[1]
http://www.apache.org/dyn/**closer.cgi/incubator/**odftoolkit/binaries/*
*odftoolkit-0.6-incubating-bin.**zip<http://www.apache.org/dyn/closer.cgi/incubator/odftoolkit/binaries/odftoolkit-0.6-incubating-bin.zip>
[2] http://apache.imsam.info//**xerces/j/binaries/Xerces-J-**
bin.2.11.0.zip<http://apache.imsam.info//xerces/j/binaries/Xerces-J-bin.2.11.0.zip>
[3] Exception in thread "main" java.lang.**NoClassDefFoundError:
org/apache/clerezza/utils/**UriException
at
org.odftoolkit.odfdom.pkg.**OdfFileDom.initialize(**OdfFileDom.java:214)
at
org.odftoolkit.odfdom.pkg.**manifest.OdfManifestDom.**
initialize(OdfManifestDom.**java:74)
at org.odftoolkit.odfdom.pkg.**OdfFileDom.<init>(OdfFileDom.**
java:132)
at
org.odftoolkit.odfdom.pkg.**manifest.OdfManifestDom.<init>**
(OdfManifestDom.java:63)
at
org.odftoolkit.odfdom.pkg.**OdfFileDom.newFileDom(**OdfFileDom.java:189)
at
org.odftoolkit.odfdom.pkg.**OdfPackage.parseManifest(**
OdfPackage.java:1219)
at org.odftoolkit.odfdom.pkg.**OdfPackage.readZip(OdfPackage.**
java:452)
at
org.odftoolkit.odfdom.pkg.**OdfPackage.initializeZip(**
OdfPackage.java:422)
at org.odftoolkit.odfdom.pkg.**OdfPackage.<init>(OdfPackage.**
java:285)
at
org.odftoolkit.odfdom.pkg.**OdfPackage.loadPackage(**
OdfPackage.java:338)
at org.odftoolkit.simple.**Document.loadTemplate(**
Document.java:239)
at
org.odftoolkit.simple.**TextDocument.newTextDocument(**
TextDocument.java:181)
--
Florian Hopf
Freelance Software Developer
http://blog.florian-hopf.de