I was unable to find answers in the updated Getting Started guide to get it running on the android platform, as well as using the Android branch of docx4j at https://github.com/plutext/docx4j/tree/android. This android branch on github only seems to have 8 .jar files in the library, which doesn't include a docx4j jar file.
jason wrote:Use those jars to the exclusion of the standard docx4j jars. To repeat myself, you can't use the standard docx4j jar in an Android environment. That's why there is an Android specific branch. Make sure the standard docx4j jar is not on your class path.
Post src: docx-java-f6/problem-running-docx4j-installation-issue-t1682.html
If I don't include the standard doxc4j and slf4j jars to my classpath, how do I run the docx4j on the android platform?
I am simply trying to run this as a test (found in the getting started guide):
- Code: Select all
// Create the package
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.createPackage();
// Save it
wordMLPackage.save(new java.io.File("helloworld.docx") );
Sorry for such basic questions!