https://bugs.documentfoundation.org/show_bug.cgi?id=149069

Hossein <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #5 from Hossein <[email protected]> ---
A similar symptom can be reproduced with FirstUnoContact DevGuide example. It
can be found here:

LibreOffice Developer's Guide: Chapter 1 - First Steps
https://wiki.documentfoundation.org/Documentation/DevGuide/First_Steps#First_Contact

Upon running it in official way, I get:

$ make FirstUnoContact.run
"/usr/bin/java" 
-Dcom.sun.star.lib.loader.unopath="/opt/libreoffice7.6/program" -jar
/home/hossein/libreoffice7.6_sdk/LINUXexample.out/class/FirstStepsExamples/FirstUnoContact.jar
warning: com.sun.star.lib.util.NativeLibraryLoader must be loaded by
com.sun.star.lib.unoloader.UnoClassLoader for java_uno bridge to work (not a
problem if this is using Java remote bridge or unit test)
Connected to a running office ...
remote ServiceManager is available

It is possible to run it manually:

You only need to copy FirstUnoContact.java somewhere, and then invoke:
(assuming LibreOffice 7.6 on Linux)

$ javac -cp /opt/libreoffice7.6/program/classes/unoil.jar FirstUnoContact.java
$ java -cp .:/opt/libreoffice7.6/program/classes/unoil.jar FirstUnoContact
warning: com.sun.star.lib.util.NativeLibraryLoader must be loaded by
com.sun.star.lib.unoloader.UnoClassLoader for java_uno bridge to work (not a
problem if this is using Java remote bridge or unit test)
Connected to a running office ...
remote ServiceManager is available

On Windows:

> javac -cp "c:\Program Files\LibreOffice\program\classes\unoil.jar" 
> FirstUnoContact.java
> java -cp ".;c:\Program Files\LibreOffice\program\classes\unoil.jar" 
> FirstUnoContact
warning: com.sun.star.lib.util.NativeLibraryLoader must be loaded by
com.sun.star.lib.unoloader.UnoClassLoader for java_uno bridge to work (not a
problem if this is using Java remote bridge or unit test)
Connected to a running office ...
remote ServiceManager is available

I tried using com.sun.star.lib.loader.Loader class, but it didn't help.

java -Dcom.sun.star.lib.loader.unopath="c:\Program Files\LibreOffice\program"
-cp ".;c:\Program Files\LibreOffice\program\classes\unoil.jar;c:\Program
Files\LibreOffice\program\classes\unoloader.jar;C:\Program
Files\LibreOffice\sdk\classes" com.sun.star.lib.loader.Loader FirstUnoContact
warning: com.sun.star.lib.util.NativeLibraryLoader must be loaded by
com.sun.star.lib.unoloader.UnoClassLoader for java_uno bridge to work (not a
problem if this is using Java remote bridge or unit test)
Connected to a running office ...
remote ServiceManager is available

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to