Page 1 of 1

Android Installation

PostPosted: Thu Mar 06, 2014 6:49 pm
by yoshiness
I posted a little while back about running docx4j on the android platform, and using the DocxToHTML example as a guide. In the more recent version (3.0.1), it says that it can run on the android platform ("Do all this on Android (v3 or 4)").

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!

Re: Android Installation

PostPosted: Thu Mar 06, 2014 9:02 pm
by jason