Ubuntu – Can’t open any Libre Office docs in 12.04


This error message pops up when opening a document in LibreOffice:

LibreOffice 3.5
An unknown error has occurred.

I can, however, open a fresh new document. This is obviously not desirable behaviour.

EDIT: I tried opening a Calc doc which I used in my 11.04 installation (which is now 12.04). The documents are as they always were, in my Documents folder. Impress files seem to open fine. I've not yet tried a Writer file yet, as I don't use them too often.

What is the problem?

Best Answer

I have the same problem. Run command as it explained above and i got this error message:

krator@laptop:~/Documents$ libreoffice --writer myFile.odt 
[Java framework] Error in function createSettingsDocument (elements.cxx).
javaldx failed! 
Warning: failed to read path from javaldx
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'

Any fix for this issue?

Ok, I found the answer to this issue. Here is solution:

Fixing Java Framework Error

You may get the following error when you try to run OpenOffice.

[Java framework] Error in function createSettingsDocument (elements.cxx).
javaldx failed!

If so, give yourself ownership of ~/.config/ like so:

sudo chown -vR username:users ~/.config