Search code examples
java.netmonoopenoffice.orgikvm

IKVM.NET as the JRE for OpenOffice


I am writing a OpenOffice extension which is supposed to interact with a large .NET library. As suggested here, a plausible solution is to use IKVM.NET with the extension written in Java which interacts with the Mono library. Yet, the question is, how to introduce IKVM.NET as the JRE for OpenOffice.


Solution

  • I think this is not possible without recompiling OpenOffice. OpenOffice has a very strong Java VM check. If you want do it then you need:

    • Rename or copy ikvm.exe to java.exe.
    • do the equals changes from this fix checkin for Java 7 with the settings of IKVM. The vendor is "Jeroen Frijters". The current ikvm has the version 1.7.0. Then rebuild OpenOffice or LibreOffice.
    • Then enter the path of the IKVM bin parent directory in the menu Tools - Options - OpenOffice.org - Java

    Alternative you can change the vendor of IKVM to "Oracle Corporation" and rebuild it.

    But I have no idea how this should work with mono.