June 22, 2017 Kroon

Building from Source

To build JODConverter you need Maven 2.

Check out the source code from the Subversion repository hosted by SourceForge.net:

$ svn co https://jodconverter.svn.sourceforge.net/svnroot/jodconverter/trunk/jodconverter jodconverter

Or to check out a particular version:

$ svn co https://jodconverter.svn.sourceforge.net/svnroot/jodconverter/tags/2.1.1/jodconverter jodconverter

For the tests to pass, start OpenOffice.org as a service listening both on a socket and on a named pipe:

$ /opt/openoffice.org2.1/program/soffice -accept="socket,port=8100;urp;" -headless &
$ /opt/openoffice.org2.1/program/soffice -accept="pipe,name=jodconverter;urp;"
$ export LD_LIBRARY_PATH=/opt/openoffice.org2.1/program

The last line is required for the named pipe connection to work since it needs to load a native library installed with OpenOffice.org.

Now you can build and install the package in your local Maven repository:

$ cd jodconverter
$ mvn install

The webapp is available as a separate module; it can be checked out and built with

$ svn co https://jodconverter.svn.sourceforge.net/svnroot/jodconverter/trunk/jodconverter-webapp jodconverter-webapp
$ cd jodconverter-webapp
$ mvn package

Leave a Reply

Your email address will not be published. Required fields are marked *