LibreOffice & Eclipse
News
- The OpenOffice.org development plugin for Eclipse is still alive - February 19, 2006
- OOoEclipseIntegration release 1.0.3 - June 26, 2006
- OOEclipseIntegration release 1.0.3.a - August 20, 2006
- uno-skeletonmaker in OOo Eclipse Integration - November 15, 2006
- OOoEclipseIntegration, a preview - December 8, 2006
- OpenOffice.org Eclipse Integration v1.1 released - January 16, 2007
- OOEclipseIntegration on EclipsePluginCentral - February 1, 2007
- Conf at SolutionLinux, slides - February 2, 2007
- OOEclipseIntegration: subcomponent in IZ - February 6, 2007
- Debugging an OOo extension with Eclipse - November 20, 2007
- Quality for the OOEclipseIntegration - November 25, 2007
- Why my blog has been down - February 11, 2008
- No hope for the Eclipse Integration ? - February 21, 2008
- OOo integration tips - September 7, 2008
- OOo integration tips (2) - September 17, 2008
- Eclipse integration and OOo 3 - December 2, 2008
- OOEclipse sources moved to git - May 28, 2009
- Hackweek on OOEclipse - August 3, 2009
- OOEclipse on Ohloh - September 25, 2009
- OOEclipse version 1.1.2 moved to stable - October 1, 2009
- Create an OpenOffice.org Java client in a few seconds - October 9, 2009
- A new OOEclipse developer - October 12, 2009
Download
An installation tutorial explains the installation of the plugin step by step, please report to this page for more installation informations.
The plugin can be installed using the following update sites:
- stable (but sometimes old)
- dev (but not completely tested)
Source code
After having long been hosted by OpenOffice.org API project, the sources of the eclipse integration have moved on an ooo-build Git repository. Here are the instructions to checkout the sources:
For anonymous access:
git clone git://anongit.freedesktop.org/libreoffice/contrib/ooeclipse
For developers:
git clone ssh://[username@]git.freedesktop.org/libreoffice/contrib/ooeclipse
For those who don’t want to use the command line, here is an eclipse plugin for Git: http://git.or.cz/gitwiki/EclipsePlugin. I haven’t tried it yet, but I would be glad to have some feedback on it or links to other Eclipse plugins.
Here is a useful page for those who are switching from SVN or CVS to Git: http://www.freedesktop.org/wiki/Software/ooo-build/SVNToGitCheatSheet.
Usage tips
Here are some tips on how to use the Eclipse integration of OOo.
- First post. Using the Eclipse Integration with ooo-build. Refactoring the IDL specifications
- Second post. Generating an OXT extension.

[...] http://cedric.bosdonnat.free.fr/wordpress/?page_id=11&lp_lang_view=en [...]
I’m just about to start using this plugin and I noticed in the
“Create a new URE based application.”
dialog that more than one Programming language is possible.
Do you have any plans to provide a C++ language option?
Philipp,
The idea is still somewhere in my thoughts but I’m not maintaining it during my nights anymore. That said, this isn’t necessarily complex.
Regards
it seems that this doesn’t work with the new SDK 3.0.
have you some ideas how i can use the new SDK with eclipse?
best regards
@PAX,
I’m aware that the Eclipse integration doesn’t work with OpenOffice.org 3.0 and it’s SDK due to changes in the installation in three layers. I don’t have much time to work on it now, but I’ll try to fix this ASAP.
Regards
@Cédric
i have installed the sdk 3.0. is there a possibility to integrate it manually? i badly need it for my work. :-(
@PAX:
In fact this is hardcoded in the plugin. I’ll try to fix this really soon as you aren’t the only one asking for this.
So, this may sound extremely obvious, but where is the path to the OpenOffice.org installation supposed to point? The reason I ask is because the only OOo installation I can find is /usr/bin, but the plugin keeps telling me that path is invalid. Any suggestions would be helpful. Thanks.
Jason:
I guess you are using the ooo-build version (packaged in most Linux distributions). In that case the path to OpenOffice.org is certainly /usr/lib/openoffice. I you are using OOo3, I just remain you that the extension doesn’t support the new installation layers yet.
Cedric
I’ve got the same problem that PAX have. If it is possible to solve this problem, it would be a great thing!
Anyway, thanks for your job.
Kenji.
Cédric,
I know you undoubtedly have a “day job,” and your time is limited, but I have the same issue with OO-SDK 3.0. According to the above comments, you were going to try to expedite this in October. It’s now January 16. Do you perhaps have a beta version I could try? I’m willing to help you debug it. I’m running Eclipse 3.4.1 on Mac OS X 10.5, with the Eclipse plugins: OO dev core 1.1.1, and OO dev support for Java 1.0.1.
I’m looking forward to trying your plugin.
Thanks,
Rob
Cédric,
I have the same problem as Jason; I am using OOo 2 (as provided with Debian 4), and, as you suggest, /usr/lib/openoffice is the location where the soffice executable is installed
However, the plugin tells me that this folder is invalid (“Invalid OOo path”); can you tell me what criteria are used by the plugin to determine validity?
Yours,
Jonathan.
Jonathan:
you need to select the path to the installation of OpenOffice.org which is /usr/lib/openoffice on Debian Etch. The plugin looks for some files, like:
+ program/types.rdb
+ program/services.rdb
+ program/classes directory
+ program/boostraprc
Rob,
I’ve finally managed to have something working, but not complete yet: getting types from a URE application doesn’t work anymore. I want to fix this before releasing a new version.
I have uploaded a developpement version supporting the new installation layers of OOo 3.x. You can find the update site at the following address:
http://cedric.bosdonnat.free.fr/ooeclipseintegration-dev/
Please don’t hesitate to report the bugs you could have found. You will certainly see that the UNO types selector has changed: you now have to manually refresh it to avoid starting OOo every now and then.
Cedric
Cédric,
Thanks for the dev version. It allowed me to choose the 3.0 SDK, but only the OO 2.4 install. When I tried to choose OO 3.0, I received an “Invalid OOo path” error. Will the 3.0 SDK even work with a 2.4 install?
On another note, where would you like bugs reported?
Thanks again,
Rob
Hi Rob,
hum… this seems strange: I could make it work on my machine with a dev version of OpenOffice.org 3.x and the ooo-build-3-0 branch of go-oo build. I haven’t tested with a clean install of the upstream version thought. Could you tell me your platform / version of OOo, the path you have selected and what is inside that folder ?
To report bug, the best is to fill them on OpenOffice.org IssueZilla with these values:
+ Component: sdk
+ SubComponent: eclipse-integration
Here is a link to the new issue form: http://www.openoffice.org/issues/enter_bug.cgi?component=sdk. You only have to select the subcomponent on this page and of course describe the bug ;)
In any case, write the plugins versions in the description as there is no relation with OOo releases.
Cedric
Hi Cedric,
Thanks for providing the dev-version.
I have a situation similar to Robert above – no directory in the OOo 3.0 installation seems to qualify as a valid OOo path. I don’t expect to be able to help in developing the plugin in the immediate future, so I hesitate opening an issue on the openoffice.org tracker for now, but here’s what I have so far.
To me this seems to have something to do with the way URE is located in the installation and the getLibsPath -implementation in the 1.1.2 -version of the plugin.
In the Gentoo openoffice-bin-3.0.0 installation (go-oo version OOO300_m9, I believe) the actual OOo installation directory would likely be referred to as
/usr/lib/openoffice/basis3.0/
that contains directories help, presets, program and share and a soft link ure-link -> ../ure
The actual files that seem to be used for validating the OOo directory are instead situated under /usr/lib/openoffice like this:
ure/share/java/
ure/share/misc/types.rdb
ure/share/misc/services.rdb
program/bootstraprc
that is, none of them are under the basis3.0 tree and the rdb:s are under share/misc instead of program as in the 2.x series.
Creating a ure/program -directory and linking the rdb:s and bootstraprc there allows /usr/lib/openoffice/ure to be selected as the OOo directory and to use the plugin to create a new URE project, but that’s as far as I’ve gone for now.
Best regards,
Jouni
Hi Jouni,
From the version 3.0.0, OpenOffice.org is installed in three layers:
the URE in the OOO_HOME/basis-link/ure-link directory
the office layer in the OOO_HOME/basis-link directory
the branding layer in the OOO_HOME directory
The eclipse plugin is looking for files in all those three layers… you have to choose the /usr/lib/openoffice directory. The old rdb files have been split in two: that’s why the plugin is searching for rdb files in the URE as well as the basis layer. As the only way to access each layer correctly independently of the distribution is to follow the basis-link and ure-link links (or files if installed on windows), the Eclipse plugin uses them to match the files. If one of these is missing for you, the path will be considered as not an OOo installation one.
Please check that you have the basis-link link in your OOO_HOME and that there is a ure-link in the OOO_HOME/basis-link.
Cedric
Hi Cedric.
I’m almost sure I started with trying that very path, but indeed…
$ export OOO_HOME=/usr/lib/openoffice
$ file /usr/lib ${OOO_HOME} ${OOO_HOME}/basis-link ${OOO_HOME}/basis-link/ure-link
/usr/lib: symbolic link to `lib64′
/usr/lib/openoffice: directory
/usr/lib/openoffice/basis-link: symbolic link to `/usr/lib64/openoffice/basis3.0′
/usr/lib/openoffice/basis-link/ure-link: symbolic link to `../ure’
And that installation really is accepted in the eclipse-3.3 IDE as long as it is selected via “browse” – it’s just writing the path in the field that did not work.
Thanks, I think this clears up things on this end.
rgds,
Jouni
Hi Jouni,
I’m glad that it works ;)
Cedric
Cédric,
Sorry for the delay getting back to you. I had some issues with Eclipse after trying to run an update (Will I never learn?), so I got side-tracked for a bit, and then had to do some work on another project. Anyway, I hope to get back to the OO SDK soon. Until then, to answer your questions:
Mac OS X (10.5.6)
Eclipse 3.4
OpenOffice 3.0.0
On the Mac, OpenOffice follows the Mac packaging structure:
OpenOffice.app -> Contents, which contains the following (from the ls command):
-r--r--r--@ 1 rob admin 39721 Sep 30 08:14 Info.plist
-r--r--r--@ 1 rob admin 43433 Sep 30 08:14 LICENSE
-r--r--r--@ 1 rob admin 43902 Sep 30 08:14 LICENSE.html
-r--r--r--@ 1 rob admin 9 Sep 30 08:14 PkgInfo
-r--r--r--@ 1 rob admin 11061 Sep 30 08:14 README
-r--r--r--@ 1 rob admin 10485 Sep 30 08:14 README.html
lrwxr-xr-x 1 rob admin 5 Dec 17 16:03 program -> MacOS
Library:
total 0
drwxrwxr-x@ 3 rob admin 102 Sep 30 08:13 Spotlight/
MacOS:
total 1344
-r--r--r--@ 1 rob admin 118614 Sep 30 08:14 about.bmp
-r--r--r--@ 1 rob admin 232 Sep 30 08:21 bootstraprc
-r-xr-xr-x@ 1 rob admin 1530 Sep 30 08:14 crash_report
-r-xr-xr-x@ 1 rob admin 69224 Sep 30 08:14 crash_report.bin
-r--r--r--@ 1 rob admin 986 Sep 30 08:21 fundamentalrc
-r--r--r--@ 1 rob admin 378718 Sep 30 08:14 intro.bmp
drwxrwxr-x@ 3 rob admin 102 Sep 30 08:14 resource/
-r-xr-xr-x@ 1 rob admin 61 Sep 30 08:14 sbase
-r-xr-xr-x@ 1 rob admin 61 Sep 30 08:14 scalc
-r-xr-xr-x@ 1 rob admin 61 Sep 30 08:14 sdraw
-r--r--r--@ 1 rob admin 58 Sep 30 08:21 setuprc
-r-xr-xr-x@ 1 rob admin 64 Sep 30 08:14 simpress
-r-xr-xr-x@ 1 rob admin 61 Sep 30 08:14 smath
-r-xr-xr-x@ 1 rob admin 18288 Sep 30 08:14 soffice
-r-xr-xr-x@ 1 rob admin 17848 Sep 30 08:14 soffice.bin
-r--r--r--@ 1 rob admin 330 Sep 30 08:21 sofficerc
-r-xr-xr-x@ 1 rob admin 63 Sep 30 08:14 swriter
-r-xr-xr-x@ 1 rob admin 1842 Sep 30 08:14 unoinfo
lrwxr-xr-x 1 rob admin 10 Dec 17 16:03 unopkg -> unopkg.bin
-r-xr-xr-x@ 1 rob admin 13628 Sep 30 08:14 unopkg.bin
lrwxr-xr-x 1 rob admin 26 Dec 17 16:03 urelibs -> ../basis-link/ure-link/lib
-r--r--r--@ 1 rob admin 473 Sep 30 08:21 versionrc
Resources:
total 1560
drwxrwxr-x@ 5 rob admin 170 Sep 30 08:20 MainMenu.nib/
drwxrwxr-x@ 72 rob admin 2448 Sep 30 08:20 cursors/
-r--r--r--@ 1 rob admin 10935 Sep 30 08:16 drawing-template.icns
-r--r--r--@ 1 rob admin 11290 Sep 30 08:16 drawing.icns
drwxrwxr-x@ 3 rob admin 102 Sep 30 08:16 en.lproj/
-r--r--r--@ 1 rob admin 39192 Sep 30 08:16 extension.icns
-r--r--r--@ 1 rob admin 10380 Sep 30 08:16 formula.icns
-r--r--r--@ 1 rob admin 45712 Sep 30 08:16 main.icns
-r--r--r--@ 1 rob admin 11003 Sep 30 08:16 master-document.icns
-r--r--r--@ 1 rob admin 53983 Sep 30 08:16 oasis-database.icns
-r--r--r--@ 1 rob admin 53400 Sep 30 08:16 oasis-drawing-template.icns
-r--r--r--@ 1 rob admin 52603 Sep 30 08:16 oasis-drawing.icns
-r--r--r--@ 1 rob admin 50335 Sep 30 08:16 oasis-formula.icns
-r--r--r--@ 1 rob admin 48904 Sep 30 08:16 oasis-master-document.icns
-r--r--r--@ 1 rob admin 51890 Sep 30 08:16 oasis-presentation-template.icns
-r--r--r--@ 1 rob admin 51073 Sep 30 08:16 oasis-presentation.icns
-r--r--r--@ 1 rob admin 51919 Sep 30 08:16 oasis-spreadsheet-template.icns
-r--r--r--@ 1 rob admin 50953 Sep 30 08:16 oasis-spreadsheet.icns
-r--r--r--@ 1 rob admin 49196 Sep 30 08:16 oasis-text-template.icns
-r--r--r--@ 1 rob admin 47545 Sep 30 08:16 oasis-text.icns
-r--r--r--@ 1 rob admin 10690 Sep 30 08:16 presentation-template.icns
-r--r--r--@ 1 rob admin 10947 Sep 30 08:16 presentation.icns
-r--r--r--@ 1 rob admin 10085 Sep 30 08:16 spreadsheet-template.icns
-r--r--r--@ 1 rob admin 10457 Sep 30 08:16 spreadsheet.icns
-r--r--r--@ 1 rob admin 10095 Sep 30 08:16 text-template.icns
-r--r--r--@ 1 rob admin 10401 Sep 30 08:16 text.icns
basis-link:
total 760
-r--r--r--@ 1 rob admin 385278 Sep 30 08:14 THIRDPARTYLICENSEREADME.html
drwxrwxr-x@ 4 rob admin 136 Sep 30 08:15 help/
drwxrwxr-x@ 4 rob admin 136 Sep 30 08:14 licenses/
drwxrwxr-x@ 16 rob admin 544 Sep 30 08:13 presets/
drwxrwxr-x@ 322 rob admin 10948 Sep 30 08:21 program/
drwxrwxr-x@ 4 rob admin 136 Sep 30 08:14 readmes/
drwxrwxr-x@ 17 rob admin 578 Sep 30 08:13 share/
drwxrwxr-x@ 5 rob admin 170 Sep 30 08:13 ure-link/
share:
total 0
drwxrwxr-x@ 3 rob admin 102 Sep 30 08:14 config/
drwxrwxr-x@ 3 rob admin 102 Sep 30 08:13 extension/
drwxrwxr-x@ 6 rob admin 204 Sep 30 08:14 readme/
drwxrwxr-x@ 4 rob admin 136 Sep 30 08:13 registry/
drwxrwxr-x@ 3 rob admin 102 Sep 30 08:13 uno_packages/
Hi Rob,
Thanks for those informations: knowing you are running macos is really helpful. I’ll try to see if there are some changes in the files that are checked when selecting the OOO version on Mac, apparently I have forgotten something. As I don’t have a mac to test, will you be ok to help me for the tests?
There is another point on macos: when I tested it, there were problems with the unopkg program. Then the extension deployment isn’t possible from the Eclipse plugin. This has to be checked again as changes are occuring quickly in the macos port.
Cedric
Cédric,
I will be happy to help test, but you should be aware that, although I have fairly extensive development experience, I am a complete newbie with the OpenOffice SDK and UNO. I have only used Eclipse for PHP and C programming so far.
Rob
Cédric,
since I have the same problem with Eclipse and OOO SDK 3.0 on a Mac with OS X 10.5.6, I could help testing too.
Frank
Frank, Robert,
Thanks for your help… I will first have to find some time to fix the problem. I hope ASAP.
Cedric
Cédric,
Count me in as another interested USER (not developer) party.
Ubuntu Hardy 8.04
Eclipse Ganymede 3.4
OpenOffice 2.4
Java JRE 1.6
I have not downloaded/tried anything yet – but I will go head and try the current DEV version if you are ready for my feedback (I have some experience as a SW tester).
BTW – I am a big proponent of giving VOLUNTARY MONETARY DONATIONS for open source associate work (like this). If you had a paypal account posted on your site i would have bumped you a few $$$ already.
Hi Don,
Thanks for being volunteer to test, this will certainly help me to provide better quality versions. I am already aware of one bug in the DEV version: the UNO types selector doesn’t work anymore for URE projects… This is a pity, but I guess this is not the most used feature…
WRT the paypal account, you are the first one asking for it… I’ll have a look at that. Thanks for your offer.
Cedric
Robert, Frank,
I have updated the development version with a small change which should make it working for MacOS. As I don’t have such a platform at home, I couldn’t test it by myself first… please could you give me some feedbacks on the fix (good or not).
I hope this will do
Cedric
Cédric,
No luck. When I select the SDK 3.0, I get the message “SDK version has to be at least 2.0.4.” Also, it let’s me pick OpenOffice 2.4 as my app, but I still get the “Invalid OOo path” message when I pick OpenOffice 3.0.
Thanks for spending time on this.
Rob
Hi Robert,
Ok, then I might have forgotten something else… I’ll have to find a way to test/debug it. If you know a way for me to have an account on a MacOS machine for testing, it’ld be great. Otherwise I’ll try to “emulate” the MacOS X install to test that point.
Thanks for your tests,
Cedric
Hi Cédric,
I want to integrate OO into an Eclipse RCP product. I am not 100% sure if I require these plugins. But to my present knowledge they will help me in doing so.
As you know, these things does not work with latest version of OO SDK and OO Installation.
I need to get it working in all 3 platforms. Where can I get the source code of this projects? I have developed Collaber product. (www.collaber.com) Do you think I can handle the source to fix it?
Do you require systems to test? I can provide access to my Mac Leopard and Ubuntu systems(VNC). They have Java,Eclipse 3.4, OO3.0, OO SDK3.0
Do you need windows too? I hope you will have it already.
If you think I can handle the source, and If you can explain little bit of how to do it, I would like to do the changes and submit the code back to you.
Thank you
Rajesh
Rajesh,
First of all, I don’t think the integration you need is the one I have done. You may have a look at the following integration. The plugin I am developing is to help the development of OpenOffice.org extensions.
http://ubion.ion.ag/solutions/003officeintegrationeditor/
If you could provide me a VNC access to a MacOS machine, I could test and fix the problems of the OOo3.x layer quite quickly. For the other platforms, I can easily have access to them.
I don’t doubt you would be able to fix the bugs for OOo3.x in my plugin, but it’s almost done: there is only to fix a tiny problem specific to MacOS installation.
Thank you for your interest,
Cedric
@Cédric
Cédric,
The only Mac we have is the one on my desk, behind a very strict firewall. There is no way I could get permission to create an account for you for external access. Of course, it has nothing to do with you, just company policy. If there is any other way I can help, please let me know. It can be frustrating when Apple won’t allow a virtual Mac OS X setup, especially for testing purposes. There are a number of hacks that purportedly allow you to run OS X on a standard PC, but I don’t know how well any of those work.
For the time being, I have the NetBeans IDE up-and-running on my Mac with their OO plugin. Not as nice as Eclipse, but it gets the job done.
[OT] Kind of off topic, but it sure is a pain finding documentation and example code that is functional for the 3.0 SDK. Sun has a nasty habit of creating so many levels of abstraction that their API is next to impossible to use. I miss the good old days of adding a library to your build path and just calling functions to do what you need. Oh, well….
Hi Robert,
Nevermind, I’ll finish to get the hands on a MacOS to test this… I have tried MacOS hacks for x86, but it was too slow to be used in a virtual machine.
Which kind of documentation would you like to find? There isn’t much changes between the API & SDK 2.4 and 3.0. Maybe you’re not used to UNO? You should have a look at the developer’s guide which is now on the wiki instead of the SDK. The api project page is a good starting point for documentation: http://api.openoffice.org.
HTH
Cedric
Cedric,
Thanks for your always prompt and courteous replies. This is an ongoing issue for us, and it looks like we will be foregoing the OO API entirely, and are now concentrating our efforts on the Apache POI project, which should be easier to integrate into our existing system. It seems to be working fine for creating spreadsheets, but I don’t have presentations working yet. I will still be more than happy to help with your Mac testing, if I can be of any assistance, but my lack of UNO experience might just slow you down. :)
Again, thank you for your help, and good luck with your continuing work on this project.
Rob
I am using eclipse 3.2.0 (on Windows). After adding the plugin for OpenOffice I tried adding the available SDKs to the Eclipse Preferences. When I try to add the 3.0 SDK it throws an error “SDK version has to be atleast 2.0.4″.
Also, when i was adding OOo installation, it didnt give any error but it didnt show in the list (strange isnt it! but i still couldnt figure out why!).
what could i possibly doing wrong?
I am using OOo 3.0 and the same version of SDK on Windows Server 2003
@Pracheer: you should have a try with the development version available here: http://cedric.bosdonnat.free.fr/ooeclipseintegration-dev/. The support of OpenOffice.org 3.x hasn’t been released yet.
@Cédric
Hello Cédric;
I have tried your developement version. For some strange reason I could setup
the plugin to the point where I could create and export UNO projects, but
javamaker was not working due to missing libstlport_gcc.
I fixed that (Gentoo), and also recompiled open office with use flag “USE = … odk …” while doing so, but from then on I could no longer add the open office installation to the plugin (Preferences -> … -> Installed open office versions); the old one was no longer accepted.
The issues with the links I have tested too, and it seems that they are present:
landulf openoffice # pwd
/usr/lib/openoffice
landulf openoffice # file basis-link
basis-link: symbolic link to `basis3.0/’
landulf openoffice # file basis-link/ure-link
basis-link/ure-link: symbolic link to `../ure’
Do you have an idea how I could further debug that problem and then fix it?
Many Regards,
Jens- Birger Schlie
@Jens- Birger Schlie
Could you please email me, the list of all the files contained in your OpenOffice.org installation? and the path you have selected in the plugin?
Cedric
Hi Cedric,
you are still updating the plugin? It is really great.
I switched to Eclipse 3.5 and now I can’t select the programming language anymore for a new project. The field to select Java is gray.
I just checked out the dev version of the plugin. Unfortunately I didn’t have programmed a plugin before.
I am using OpenOffice 3.1 and eclipse 3.5 on WIndows XP and Debian.
@Andreas,
Indeed I’m still updating the plugin, but not at a quick pace. It’s strange that the plugin doesn’t properly work on Eclipse 3.5: I have switched the development and tests to Eclipse 3.5 recently without any problem.
Did you install the Java and the Core plugins ?
FYI: I haven’t yet build the new features into the update sites…
Bonjour Cédric,
Je suis français, donc je vais me permettre de communiquer en français. Si l’anglais est mieux pour me faire comprendre par les autres forumeurs, fais le moi savoir.
Voila, je suis indépendant en informatique et vrai fan d’OpenOffice.org et de ses possiblités d’utilisation en corrélation avec mon domaine de compétence professionnel : la documentation structurée XML.
J’ai utilisé le module writer d’OpenOffice.org dans plusieurs projets professionnels pour ses capacités de mise en page des documents, d’export PDF et pour son format OpenDocument. J’ai utilisé Openoffice.org en mode serveur pour charger des documents Opendocument (créés par des processus XML-XSLT) et les exporter au format PDF.
Maintenant pour ma mission actuelle, j’aimerais aller plus loin et créer une extension openoffice utilisant les metadata introduit dans la version 1.2 du format opendocument.
J’envisage pour cela d’utiliser ton plug-in ooeclipse, j’ai essayé de récupérer le “first post” de tes “Usage tips” mais le lien semble cassé.
J’aurais besoin de créer une interface utilisateur dans openoffice et de faire des traitements sur le document (visualiser les metadata, les saisir, …), aurais-tu une doc. ou un exemple d’extension me permettant de comprendre comment tout s’articule ?
J’ai la doc d’Openoffice mais c’est chaud.
Merci d’avance
Arnaud
Hi Arnaud,
Indeed English would be better for others to understand… but I french people also like reading in french ;)
I have just fixed the link for the first tip, thanks for the report.
You may be interested in joining the #fr.openoffice.org IRC channel to discuss this: what you want to do seems quite complex to me to be able to do it in an extension.
HTH
Cedric
Hi Cedric,
Thanks for your quick answer.
I have always trouble with the link for the first tip, it is in restricted area.
I’ll come back to you if I use ooeclipse for my need.
Arnaud
The link is now fixed… didn’t pay enough attention this morning :)
Thanks. It’s working :-)
Installed 1.2.0 from the developer web site on Vista, Java 1.6.0_17, OO ver. 3.1, eclipse galileo
Install and configuration went with out any problems.
Configured to OO and SDK with out problem. The paths to both of these have spaces, but no errors are produced.
I get the following error when I try to create a new UNO project.
An internal error occurred during: “Project opener”.
java.lang.NullPointerException
In the project explorer, I see the new project folder with the
“U” icon, but the folder is empty.
Anybody have any suggestions on where to find the EGIT
plugin for eclipse? The webpage has nothing to download.
Hi Chuck,
Could you please send me a stracktrace of the error? you should find one in the log view. The problem with the spaces doesn’t appear when configuring the OOo and SDK, but when building the project with them…
WRT EGit, it seems that the old update site can still be used, though they may switch to the new project page at any time: http://www.jgit.org/updates/.
Your git link leads to a page with nothing to down load.
I copied the 1st. error from the log file. More errors follow, but
this is where the problems start occurring.
From the log file ****my comments***:
**** this is not an error****
eclipse.buildId=M20090917-0800
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.rcp.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.rcp.product
Info
Tue Dec 01 08:35:39 EST 2009
OOEclipseIntegration started
eclipse.buildId=M20090917-0800
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.rcp.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.rcp.product
*****This is the 1st. sign of trouble*******
Warning
Tue Dec 01 08:35:42 EST 2009
Error saving all the project properties
java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at java.util.Properties.setProperty(Unknown Source)
at org.openoffice.ide.eclipse.core.internal.model.UnoidlProject.saveAllProperties(UnoidlProject.java:607)
at org.openoffice.ide.eclipse.core.internal.model.UnoidlProject.configure(UnoidlProject.java:677)
at org.openoffice.ide.eclipse.core.model.ProjectsManager.addProject(ProjectsManager.java:104)
at org.openoffice.ide.eclipse.core.model.ProjectsManager.load(ProjectsManager.java:162)
at org.openoffice.ide.eclipse.core.ResourceChangesHandler.earlyStartup(ResourceChangesHandler.java:115)
at org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup(EarlyStartupRunnable.java:87)
at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:66)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench$55.run(Workbench.java:2192)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
***** Stack trace associated with above warning******
java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at java.util.Properties.setProperty(Unknown Source)
at org.openoffice.ide.eclipse.core.internal.model.UnoidlProject.saveAllProperties(UnoidlProject.java:607)
at org.openoffice.ide.eclipse.core.internal.model.UnoidlProject.configure(UnoidlProject.java:677)
at org.openoffice.ide.eclipse.core.model.ProjectsManager.addProject(ProjectsManager.java:104)
at org.openoffice.ide.eclipse.core.model.ProjectsManager.load(ProjectsManager.java:162)
at org.openoffice.ide.eclipse.core.ResourceChangesHandler.earlyStartup(ResourceChangesHandler.java:115)
at org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup(EarlyStartupRunnable.java:87)
at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:66)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench$55.run(Workbench.java:2192)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
****more errors follow, I can provide a full list if it will help.*****
WRT to the Git link, this is an update site: you have to use it within Eclipse plugins install dialog. I’m not sure whether this update site is valid: I’m using git from the command line: it’s much more complete and easy.
WRT the stacktrace, this might be related to the empty “Programing Language” list box.
Another item I noticed, the “programing language” select box is empty.
Did you install the Java or Cpp plugin? The core plugin by itself isn’t enought.
Okay the web site lists the java & cpp as versions of the core.
The java plugin installs without problem
the cpp results in:
An error occurred while collecting items to be installed
session context was:(profile=epp.package.rcp, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect, operand=, action=).
Artifact not found: osgi.bundle,org.openoffice.ide.eclipse.cpp,0.5.0.
http://people.freedesktop.org/~cbosdo/ooeclipse-dev/plugins/org.openoffice.ide.eclipse.cpp_0.5.0.jar
Hi Cédric,
I’m getting the same problem — when following the wiki/JavaEclipseTuto to create a stub UNO-IDL project, Eclipse can’t create the project.
The wizard’s 1st screen sees the SDK (310m14) and sees the OOo (2.1) but does not offer any languages. (Doesn’t see java. I never installed Cpp)
I believe I installed the java component. It was the same one needed to build the HelloWorld java app and HelloWorldSWT java app, right?
looking at the Eclipse installation details where it lists the plugins, it shows the
jdt core of 3.5.1.v_972_R35x
jdt.junit 3.5.1r351_v20090708-0800 and
jdt.junit.runtime v3.4.100.v20090513-2000
Are those parts of the plugin you’re asking about or is there another java plugin zip I missed?
Anyway, when I click “Finish” it says it could not create the UNO interface, the error message is Uno Project Creation Wizard: an error occurred during project creation, rollback changes.
With the java plug-in installed. project creations still produces the following error:
eclipse.buildId=M20090917-0800
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.rcp.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.rcp.product
OK
Tue Dec 01 19:02:36 EST 2009
UnoTypeProvider initialized with OOo OpenOffice.org 3.1
eclipse.buildId=M20090917-0800
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.rcp.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.rcp.product
Warning
Tue Dec 01 19:04:31 EST 2009
Error saving all the project properties
java.lang.NullPointerException
at org.openoffice.ide.eclipse.core.internal.helpers.LanguagesHelper.getNameFromLanguage(LanguagesHelper.java:97)
at org.openoffice.ide.eclipse.core.internal.model.UnoidlProject.saveAllProperties(UnoidlProject.java:607)
at org.openoffice.ide.eclipse.core.internal.model.UnoidlProject.configure(UnoidlProject.java:677)
at org.eclipse.core.internal.resources.NatureManager$1.run(NatureManager.java:143)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.resources.NatureManager.configureNature(NatureManager.java:158)
at org.eclipse.core.internal.resources.NatureManager.configureNatures(NatureManager.java:203)
at org.eclipse.core.internal.resources.Project.basicSetDescription(Project.java:84)
at org.eclipse.core.internal.resources.Project.setDescription(Project.java:1054)
at org.eclipse.core.internal.resources.Project.setDescription(Project.java:1082)
at org.openoffice.ide.eclipse.core.internal.helpers.UnoidlProjectHelper.createProject(UnoidlProjectHelper.java:490)
at org.openoffice.ide.eclipse.core.internal.helpers.UnoidlProjectHelper.createStructure(UnoidlProjectHelper.java:145)
at org.openoffice.ide.eclipse.core.internal.model.UnoFactory.createProject(UnoFactory.java:92)
at org.openoffice.ide.eclipse.core.wizards.NewUnoProjectWizard$ProjectCreationJob.run(NewUnoProjectWizard.java:358)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
eclipse.buildId=M20090917-0800
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.rcp.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.rcp.product
OK
Tue Dec 01 19:04:31 EST 2009
UNO-IDL nature set
eclipse.buildId=M20090917-0800
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.rcp.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.rcp.product
Warning
Tue Dec 01 19:04:31 EST 2009
Can’t create default uno configuration file
java.io.FileNotFoundException: C:\Users\Chuck\workspace\myuno\.unoproject (The requested operation cannot be performed on a file with a user-mapped section open)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(Unknown Source)
at java.io.FileOutputStream.(Unknown Source)
at org.openoffice.ide.eclipse.core.internal.helpers.UnoidlProjectHelper.createDefaultConfig(UnoidlProjectHelper.java:117)
at org.openoffice.ide.eclipse.core.internal.helpers.UnoidlProjectHelper.createProject(UnoidlProjectHelper.java:497)
at org.openoffice.ide.eclipse.core.internal.helpers.UnoidlProjectHelper.createStructure(UnoidlProjectHelper.java:145)
at org.openoffice.ide.eclipse.core.internal.model.UnoFactory.createProject(UnoFactory.java:92)
at org.openoffice.ide.eclipse.core.wizards.NewUnoProjectWizard$ProjectCreationJob.run(NewUnoProjectWizard.java:358)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
eclipse.buildId=M20090917-0800
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.rcp.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.rcp.product
OK
Tue Dec 01 19:04:31 EST 2009
Impossible to delete the project
eclipse.buildId=M20090917-0800
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.rcp.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.rcp.product
Warning
Tue Dec 01 19:04:31 EST 2009
Unreadable uno project configuration file .unoproject
java.io.FileNotFoundException: C:\Users\Chuck\workspace\myuno\.unoproject (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(Unknown Source)
at org.openoffice.ide.eclipse.core.internal.model.UnoidlProject.getProperty(UnoidlProject.java:535)
at org.openoffice.ide.eclipse.core.internal.model.UnoidlProject.configure(UnoidlProject.java:655)
at org.openoffice.ide.eclipse.core.model.ProjectsManager.addProject(ProjectsManager.java:104)
at org.openoffice.ide.eclipse.core.ResourceChangesHandler$ProjectAdderJob.runInWorkspace(ResourceChangesHandler.java:147)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
eclipse.buildId=M20090917-0800
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.rcp.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.rcp.product
Error
Tue Dec 01 19:04:31 EST 2009
Project creation failed
java.lang.NullPointerException
at org.openoffice.ide.eclipse.core.internal.helpers.UnoidlProjectHelper.createDefaultConfig(UnoidlProjectHelper.java:122)
at org.openoffice.ide.eclipse.core.internal.helpers.UnoidlProjectHelper.createProject(UnoidlProjectHelper.java:497)
at org.openoffice.ide.eclipse.core.internal.helpers.UnoidlProjectHelper.createStructure(UnoidlProjectHelper.java:145)
at org.openoffice.ide.eclipse.core.internal.model.UnoFactory.createProject(UnoFactory.java:92)
at org.openoffice.ide.eclipse.core.wizards.NewUnoProjectWizard$ProjectCreationJob.run(NewUnoProjectWizard.java:358)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
eclipse.buildId=M20090917-0800
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.rcp.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.rcp.product
Error
Tue Dec 01 19:04:31 EST 2009
An internal error occurred during: “Project opener”.
java.lang.NullPointerException
at org.openoffice.ide.eclipse.core.internal.model.UnoidlProject.getProperty(UnoidlProject.java:543)
at org.openoffice.ide.eclipse.core.internal.model.UnoidlProject.configure(UnoidlProject.java:655)
at org.openoffice.ide.eclipse.core.model.ProjectsManager.addProject(ProjectsManager.java:104)
at org.openoffice.ide.eclipse.core.ResourceChangesHandler$ProjectAdderJob.runInWorkspace(ResourceChangesHandler.java:147)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
eclipse.buildId=M20090917-0800
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.rcp.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.rcp.product
Warning
Tue Dec 01 19:04:31 EST 2009
Error saving all the project properties
java.lang.NullPointerException
at org.openoffice.ide.eclipse.core.internal.helpers.LanguagesHelper.getNameFromLanguage(LanguagesHelper.java:97)
at org.openoffice.ide.eclipse.core.internal.model.UnoidlProject.saveAllProperties(UnoidlProject.java:607)
at org.openoffice.ide.eclipse.core.internal.model.UnoidlProject.configure(UnoidlProject.java:677)
at org.openoffice.ide.eclipse.core.model.ProjectsManager.addProject(ProjectsManager.java:104)
at org.openoffice.ide.eclipse.core.ResourceChangesHandler$ProjectAdderJob.runInWorkspace(ResourceChangesHandler.java:147)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Chuck, Mike day: are you sure that you both have installed org.openoffice.ide.eclipse.java plugin? I’m pretty sure that you haven’t installed it: otherwise the Language selection box would contain “Java”. This plugin is available on the ooeclipse update site you already used.
You’re right. I got the core but not the other java plugin. Thanks!
Chuck:
I’ll have a look at that problem: this isn’t normal. The cpp plugin isn’t finished yet, though.
Hi,
I am interested in using this plugin to develop a custom UCP for OpenOffice.
I see there is no support for automatically installing an extension and running OO in debug mode.
I have some spare time and I would be interested in helping adding a special Runner for OO. I see Netbeans already has one.
Beste regards,
Dan.
P.S.
Is there any documentation about contributing to this project ? Any mail list, tracker etc. ?
Hi Dan,
Thanks for your interest in improving OOEclipse. The OOEclipse project is somehow linked to the go-oo project, but has currently no own bug tracker / mailing list.
We can start discussing that feature on the Go-oo developer mailing list or IRC: http://go-oo.org/developers/.
WRT the documentation about contributing, there is something in the Eclipse on-line help when you have installed the OOEclipse plugins. Otherwise, feel free to ask as much question as needed.
Thanks for your help
Hi,
I landed here from a link on the page http://dev.xwiki.org/xwiki/bin/view/Design/XWikiIntegrationWithOpenOffice
Is the xwiki integration with open office relevant ? alive ?
Thank you very much,
Olivier
I have no idea… I’m discovering it now.
hello Cedric, sorry for not being able to write your name correctly, I am the one who asked about the ‘no office executable found’ error, on the Lo mailing list. actually using a netBean IDE, do not really understand your suggestion, could you please give me more detailed suggestion? it is kind of urgent, without connection to an office process, nothing more I can do.
With the OOEclipse integration you can generate Java and C++ applications connecting to an office process. The code handling the connection is much better than the default one (thanks to the http://www.artofsolving.com/opensource/jodconverter).
I’m suggestting you to generate such a project using OOEclipse and use it as a work base.
Hello ceder,
Thanks for your nice extension. Many users like your coooder extension in openoffice and libroffice.
It is an useful extenstion, but there is some restriction on black and white printers.
If the coooder text is printed then there will not differantite it to other text.
How we can change the attributes of syntax highlighting in a language(Bold, Italic, background color, foreground color, etc.).
Notepad++ uses an interesting format such that the printed code is beautiful.
How I can contribute to address this weakness.
Thanks a lot
Hi Ahmad,
The extension is simply creating styles in the document and applies them. You can change the way the code is rendered completely to suite your needs by tweaking the styles. You’ll see it’ll magically change all your code presentation as you like it ;)
Hi Cedric,
I’m not sure if this blog ist still alive since the last post seems to be from 2009. I installed the latest developer eclipse integration of yours on a Mac (running OSx Lion) and have the same issue which was reported long ago that I can’t choose the openoffice.app as a correct OOo path. I wonder if that problem was ever solved?
best, Fabian
Hi Fabian,
The blog is still alive… but that post and the Eclipse integration a bit less. If you wish to fix that bug, feel free to git clone the repository and propose a patch. I have no OS X machine here…
Hi Cedric,
first I wanted to let you know that I very much appreciate the work you did, my last post might have given another impression.
By now I switched to Netbeans for OOo devolopement to get started. I wanted at least to take a look at the OOeclipse project to see if I can figure it out, but I wasn’t able to connect to the repository using “git clone git://anongit.freedesktop.org/git/ooo-build/contrib/ooeclipse”.
Hi Fabian,
Ooops, sorry for the old link remaining on that page. The git repository URL is now git://anongit.freedesktop.org/libreoffice/contrib/ooeclipse.
I’ll update the page. Thanks for reporting the problem :)
Hi Cedric,
I used this (http://wiki.services.openoffice.org/wiki/JavaEclipseTuto#Installing_the_development_platform) instruction to install your plug-in to eclipse and it worked fine so far. When I try to export (File > Export > UNO > Openoffice.org) nothing happens, no error message etc.
Can you help me find my mistake? I am also confused by the multitude of information about this plug-in, so maybe I am just using somehting outdated.
Thanks
- Dietmar
The up-to-date infos are sitting here: http://cedric.bosdonnat.free.fr/wordpress/?page_id=309
Thanks for your feedback. I found a work around for the generation of the OXT extension which I quite like (just zipping the directory).
PS: Congratulations for your little daughter.