Page 1 of 1
[Solved] FirstUnoContact, Eclipse and libraries
Posted: Sun Sep 04, 2022 8:53 pm
by gregoryOO
Hello,
I try to run the program FirstUnoContact, available on page
https://wiki.openoffice.org/wiki/Docume ... st_Contact
I use the script Ant and the IDE Eclipse, whose say that the package com.sun.star.uno is not accessible.
But I don't know why !?
Re: FirstUnoContact, Eclipe and libraries
Posted: Sun Sep 04, 2022 9:27 pm
by RoryOF
At a guess, you need to download and install the LibreOffice SDK. It won't do any harm to install that, but note, my solution is only a guess.
Re: FirstUnoContact, Eclipse and libraries
Posted: Mon Sep 05, 2022 1:59 pm
by gregoryOO
Hello,
I have LibreOffice SDK on my computer, and I can compile and run the class without problems but only with commands java and javac.
On Eclipse, I can compile the source code because Eclipse doesn't find the libraries.
The comment on the line import com.sun.star.uno.XComponentContext; with the red point is : "The package com.sun is not accessible".
Re: FirstUnoContact, Eclipse and libraries
Posted: Mon Sep 05, 2022 2:11 pm
by gregoryOO
And an image of my project.
Re: FirstUnoContact, Eclipse and libraries
Posted: Mon Sep 05, 2022 3:15 pm
by RoryOF
Re: FirstUnoContact, Eclipse and libraries
Posted: Mon Sep 05, 2022 4:04 pm
by gregoryOO
I'm not sure to understand your previous post.
I'm working with Linux/Debian 11, Apache LibreOffice, the language Java and Eclipse 2022-03.
Re: FirstUnoContact, Eclipse and libraries
Posted: Mon Sep 05, 2022 5:43 pm
by RoryOF
gregoryOO wrote: ↑Mon Sep 05, 2022 4:04 pm
I'm not sure to understand your previous post.
I'm working with Linux/Debian 11, Apache LibreOffice, the language Java and Eclipse 2022-03.
You are writing this code - you have to do your research; I'm not going to do it for you.
Re: FirstUnoContact, Eclipse and libraries
Posted: Mon Sep 05, 2022 5:44 pm
by RoryOF
gregoryOO wrote: ↑Mon Sep 05, 2022 4:04 pm
I'm not sure to understand your previous post.
I'm working with Linux/Debian 11, Apache LibreOffice, the language Java and Eclipse 2022-03.
You are writing this code - you have to do your research; I'm not going to do it for you.
Re: FirstUnoContact, Eclipse and libraries
Posted: Mon Sep 05, 2022 11:08 pm
by gregoryOO
OK, and where I can find a forum for developers? I want to write a small macro in language Java with Apache LibreOffice. It's for a final user, not for the heart of LibreOffice itself. Thanks for your response.
Re: FirstUnoContact, Eclipse and libraries
Posted: Tue Sep 06, 2022 1:35 pm
by Villeroy
gregoryOO wrote: ↑Mon Sep 05, 2022 11:08 pm
I want to write a small macro in language Java with Apache LibreOffice
You don't know the name of the product. You never did any work with it. On which ground are you trying to write code?
Re: FirstUnoContact, Eclipse and libraries
Posted: Tue Sep 06, 2022 5:26 pm
by gregoryOO
Very friendly this support forum, great atmosphere.