Code: Select all
//i also try with /usr/lib/libreoffice/program/soffice
String rutaLibreOffice = "/usr/lib/libreoffice/program";
XComponentContext xContext = BootstrapSocketConnector.bootstrap(rutaLibreOffice);
com.sun.star.lang.IillegalargumentException
Die BootStrapsSocketConnector -Bibliothek ist https://mvnrepository.com/artifact/org. ... ctor/0.1.1
Mein Build.gradle ist:
Code: Select all
// https://mvnrepository.com/artifact/org.libreoffice/libreoffice
compile 'org.libreoffice:jurt:5.4.2'
// https://mvnrepository.com/artifact/org.libreoffice/unoil
compile 'org.libreoffice:unoil:5.4.2'
// https://mvnrepository.com/artifact/org.libreoffice/unoil
compile 'org.libreoffice:ridl:5.4.2'
// https://mvnrepository.com/artifact/org.libreoffice/libreoffice
compile 'org.libreoffice:juh:5.4.2'
// https://mvnrepository.com/artifact/org.openoffice/bootstrap-connector
compile 'org.openoffice:bootstrap-connector:0.1.1'