IllegalArgumentException -Fehler beim Versuch, eine Verbindung zu Linux LibreOffice mit Java BootstrapsocketConnector heLinux

Linux verstehen
Guest
 IllegalArgumentException -Fehler beim Versuch, eine Verbindung zu Linux LibreOffice mit Java BootstrapsocketConnector he

Post by Guest »

Ich benutze den LibreOffice -Klassen -DocumentConverter, um .odt in .pdf. ) Es gibt mir einen Fehler, wenn ich versuche, eine Verbindung zur libreoffice linux ausführbaren herzustellen (libreoffice -Verssion Libreoffice 7.0.4.2 00 (Build: 2)). < /P>

Code: Select all

//i also try with /usr/lib/libreoffice/program/soffice
String rutaLibreOffice = "/usr/lib/libreoffice/program";

XComponentContext xContext = BootstrapSocketConnector.bootstrap(rutaLibreOffice);
Der Fehler lautet:
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'

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post