Description: Running the SDK example in Java more than 3 times results in a black screen appearing on subsequent documents. Running the same example on Apache Open Office does not lead to such errors. Actual Results: black screen Expected Results: black screen Reproducible: Always User Profile Reset: No Additional Info: public class Test { public static void main(String args[]) throws Exception { Test t = new Test(); try { t.test(); } catch (Exception e) { System.err.println(e); e.printStackTrace(); } System.exit(0); } public void test() throws Exception { String file ; URL [] urls = new URL[2]; //URL [] urls = new URL[5]; file = "D:\\Project\\fccs74_java\\officel\\build\\classes\\"; urls[0] = new File(file).toURI().toURL(); //file = "C:\\Program Files\\LibreOffice\\program\\classes\\libreoffice.jar"; file = "C:\\Program Files (x86)\\LibreOffice\\program\\classes\\libreoffice.jar"; urls[1] = new File(file).toURI().toURL(); // file = "C:\\Program Files (x86)\\OpenOffice 4\\program\\classes\\ridl.jar"; // urls[1] = new File(file).toURI().toURL(); // file = "C:\\Program Files (x86)\\OpenOffice 4\\program\\classes\\juh.jar"; // urls[2] = new File(file).toURI().toURL(); // file = "C:\\Program Files (x86)\\OpenOffice 4\\program\\classes\\jurt.jar"; // urls[3] = new File(file).toURI().toURL(); // file = "C:\\Program Files (x86)\\OpenOffice 4\\program\\classes\\unoil.jar"; // urls[4] = new File(file).toURI().toURL(); // final ClassLoader loader = new URLClassLoader(urls, null); // //Class c = loader.loadClass( "officel.test.TestLibre" ); Class c = loader.loadClass( "officel.test.SCalc" ); //Class c = loader.loadClass( "officel.test.EuroAdaption"); //Class c = loader.loadClass( "officel.test.Test" ); @SuppressWarnings("unchecked") //Method m = c.getMethod( "main", new Class[] { String[].class } ); //Method m = c.getMethod( "printReport", new Class[] { Object[].class } ); Method m = c.getMethod( "printReport", null ); //Method m = c.getMethod( "test", null ); Object obj = c.getDeclaredConstructor().newInstance(); //m.invoke( obj, new Object[] {1,2,3 } ); m.invoke( obj, null ); } Scalc modified the name of the main launch method: public static void printReport() {
The solution has been found. Tools - parameters - View - disable "All output via Skia"