Hi Folks,
UNO is not working, meaning CreateUnoService("…") returns <.null.>. I understand that this is all Java foolishness and I have confirmed that java seems to be in working order. I can invoke the UNO environment from a simple java program, but this doesn’t explain why the calls to CreateUnoService fail in the context of LibreOffice macros:
import com.sun.star.uno.XComponentContext;
import com.sun.star.comp.helper.Bootstrap;
public class TestUNO {
public static void main(String[] args) {
try {
// Bootstrap the UNO runtime
XComponentContext xContext = Bootstrap.bootstrap();
if (xContext != null) {
System.out.println("UNO is available.");
} else {
System.out.println("UNO is NOT available.");
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
Sure could use some advice here …
Thanks for the help,
Chris.