Question

I have installed the docsplit gem and been able to convert PDF documents. However when it comes to splitting openoffice documents such as powerpoint and word files, I get the following error:

Exception: Command
/usr/local/bin/docsplit pdf /tmp/tmpzuk5gf/dump.ppt --output /tmp/tmpzuk5gf
finished with return code
1
and output:
Exception in thread "main" java.lang.NoClassDefFoundError: /usr/lib/openoffice
Caused by: java.lang.ClassNotFoundException: .usr.lib.openoffice
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: /usr/lib/openoffice. Program will exit.

I have already checked that the /usr/lib/openoffice folder is available.

How do I go about this?

Was it helpful?

Solution

I was using docsplit 0.7.2 with OpenOffice and Ubuntu 10.04. However, version 0.7.0 onward seems to have a preference for LibreOffice over OpenOffice. So I downgraded my docsplit to version 0.6.4 and it works OK with OpenOffice. I can now run the commands successfully.

OTHER TIPS

I have using docsplit 0.7.2 with openoffice and ubuntu 12.04 all is OK.

In previous time I have used ubuntu 10.04 and sometimes converting were breaking with similar error, but i had tried again and in most cases converting were completed successfully.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top