Skip to content

Instantly share code, notes, and snippets.

On openjdk-1.7.0_55 on ubuntu I am getting exception:
com.sun.org.apache.xml.internal.serializer.utils.WrappedRuntimeException: Could not load the property file 'output_xml.properties' for output method 'xml'
Can this be classpath issue?
I can find "output_xml.properties" in /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/resources.jar.
===============================================================
Try ensuring that your system is consistently using the same java version - sometimes these get out of sync.
First do echo $java_HOME and verify that it points to /usr/lib/jvm/java-1.7.0-openjdk-amd64/.
Now run sudo update-alternatives --config java and select the correct number for /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java