Apache OpenOffice (AOO) Bugzilla – Issue 75316
CWS sb69 Followup: Handle Exception when installing extension with insufficient Java version
Last modified: 2013-08-07 15:31:14 UTC
This is a follow up to issue #73665: When installing the extension (attachment from #73665) we get quite an ugly exception. Please handle it gracefully.
Please use something like Sun JRE 1.4.2 as the default java in the office application to install this extension.
I would regard this as nice to have. We also do not check if a c++ component requires a C runtime which is currently not available in OOo. Even if we provided a dependency in the description.xml of the extension, that determines the version, it is not sure that later the same java is used in OOo as at the time of deployment. Our class loader could perhaps check the required java version and complain.
Created attachment 44158 [details] First step for a fix
The attached jurt.patch (a cleanup of com.sun.star.comp.loader.JavaLoader activate and writeRegistryInfo methods, to properly handle java.lang.LinkageError) solves the issue partly: Now, a UNO com.sun.star.loader.CannotRegisterImplementationException instead of a Java Error translated into a com.sun.star.uno.RuntimeException is thrown, but unopkg only displays ERROR: An error occurred while enabling: JavaComponent.uno.jar This can probably be improved (e.g., by displaying exception type/message as further details) in the extension manager.
What is the status of this task? I set the preliminary target to 2.4 (was 2.x which is about to become obsolete)
Retargeting to 3.0
Retargeted.