Re: [api-dev] Ubuntu OpenOffice.org eclipse plugin
Mikael De Bie a écrit : Thank you very much for your help ! I've followed the steps and manage to create a UNO package. :) But it still remains a problem : I've made the really simple macro : Sub TestHelloworld helloworld = createUnoService(org.openoffice.helloworld.Helloworld) print helloworld.sayHello() End Sub And I get this error when calling the sayHello() method : BASIC runtime error. Property or method not found. Tough I don't think that I've missed something in the tutorial... My files are the same as the ones described at http://wiki.services.openoffice.org/wiki/JavaEclipseTuto Any idea ? No idea if you have the same files as the tutorial... Could you try to inspect the helloworld object with xray ? Cedric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Ubuntu OpenOffice.org eclipse plugin
I've inspected the helloworld object by using this macro : Sub TestHelloworld helloworld = createUnoService(org.openoffice.helloworld.Helloworld) oInspector = createUnoService(org.openoffice.InstanceInspector) oInspector.inspect(helloworld, helloworldInspect) helloworld.sayHello() End Sub I can see the method string sayHello() = in the list of methods. When I generate the source code, here's what I get : import org.openoffice.helloworld.XHelloworld; public void codesnippet(Object UNOENTRYOBJECT){ XHelloworld xHelloworld = (XHelloworld) UnoRuntime.queryInterface(XHelloworld.class, UNOENTRYOBJECT); String sVariableName = xHelloworld.sayHello(); } It seems that the method exists... However, I stell get the same error. cheers, Mikaël On Thu, 2006-11-30 at 09:40 +0100, Cedric Bosdonnat wrote: Mikael De Bie a écrit : Thank you very much for your help ! I've followed the steps and manage to create a UNO package. :) But it still remains a problem : I've made the really simple macro : Sub TestHelloworld helloworld = createUnoService(org.openoffice.helloworld.Helloworld) print helloworld.sayHello() End Sub And I get this error when calling the sayHello() method : BASIC runtime error. Property or method not found. Tough I don't think that I've missed something in the tutorial... My files are the same as the ones described at http://wiki.services.openoffice.org/wiki/JavaEclipseTuto Any idea ? No idea if you have the same files as the tutorial... Could you try to inspect the helloworld object with xray ? Cedric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] Ubuntu OpenOffice.org eclipse plugin
Hello, I've tried to make a simple uno component using the eclipse plugins by following instructions from this url (http://wiki.services.openoffice.org/wiki/JavaEclipseTuto). The installation's been finished without any problems but when I create a new project, it seems that some files are not created : - nothing appears in the build directory but an empty directory urd - officebeans.jar is missing (but I have a jurt.jar) - types.rdb is missing I've tried to follow instructions anyway, but some errors appears because the interface XHelloworld is not generated from the idl file I wrote. For information, I'm using the SDK 680m5 and OpenOffice.org 2.0.4. (the versions that are available in the default ubuntu repositories) Thanks a lot, Mikaël - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Ubuntu OpenOffice.org eclipse plugin
The Eclipse plugin works only with Official OOo installations. The Ubuntu, Debian, and may be other distributions packagings aren't supported. You can find correct debs on Pavel FTP: http://ftp.linux.cz/pub/localization/OpenOffice.org For development work I make .tgz-packages from the official rpms with alien (alien -t bla.rpm). Like this you can install different versions in parallel and you don't need root access. Don't forget to setup the appropriate environment variables. Arthur - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Ubuntu OpenOffice.org eclipse plugin
Thanks for your answers I've downloaded ans installed this version of sdk http://ftp.linux.cz/pub/localization/OpenOffice.org/2.0.4/SDK/openoffice.org-sdk_2.0.4-5_i386.deb The eclipse plugin seems to work and creates a UNO package. I've also tried to install OOo from the deb packages of this file : http://ftp.linux.cz/pub/localization/OpenOffice.org/2.0.4/OOo_OOD680_m5_LinuxIntel_install_cs_deb.tar.gz But I don't manage to install it because of conflicts with my installed version. I've also tried to use the official version available on the official website http://www.openoffice.org, but I can't install it for the same reason. I've tried to import UNO package in the ubuntu version anyway, but that doesn't work. Is the only way to uninstall installed version and replace it by the official one ? I'd rather install the official one without removing the other one... Thanks in advance, Mikaël On Wed, 2006-11-29 at 18:36 +0100, Arthur wrote: The Eclipse plugin works only with Official OOo installations. The Ubuntu, Debian, and may be other distributions packagings aren't supported. You can find correct debs on Pavel FTP: http://ftp.linux.cz/pub/localization/OpenOffice.org For development work I make .tgz-packages from the official rpms with alien (alien -t bla.rpm). Like this you can install different versions in parallel and you don't need root access. Don't forget to setup the appropriate environment variables. Arthur - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Ubuntu OpenOffice.org eclipse plugin
Arthur wrote: For development work I make .tgz-packages from the official rpms with alien (alien -t bla.rpm). Like this you can install different versions in parallel and you don't need root access. Good tip, thanks Arthur. Mikaël, you may want to read it again. ;-) Cheers Mirko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Ubuntu OpenOffice.org eclipse plugin
Thank you very much for your help ! I've followed the steps and manage to create a UNO package. :) But it still remains a problem : I've made the really simple macro : Sub TestHelloworld helloworld = createUnoService(org.openoffice.helloworld.Helloworld) print helloworld.sayHello() End Sub And I get this error when calling the sayHello() method : BASIC runtime error. Property or method not found. Tough I don't think that I've missed something in the tutorial... My files are the same as the ones described at http://wiki.services.openoffice.org/wiki/JavaEclipseTuto Any idea ? On Wed, 2006-11-29 at 21:44 +0100, Arthur wrote: The Eclipse plugin works only with Official OOo installations. The Ubuntu, Debian, and may be other distributions packagings aren't supported. You can find correct debs on Pavel FTP: http://ftp.linux.cz/pub/localization/OpenOffice.org For development work I make .tgz-packages from the official rpms with alien (alien -t bla.rpm). Like this you can install different versions in parallel and you don't need root access. I've also tried to install OOo from the deb packages of this file : http://ftp.linux.cz/pub/localization/OpenOffice.org/2.0.4/OOo_OOD680_m5_LinuxIntel_install_cs_deb.tar.gz Those are not the .tgzs I meant. But I don't manage to install it because of conflicts with my installed version. I've also tried to use the official version available on the official website http://www.openoffice.org, but I can't install it for the same reason. Step by step for OOo2.0.4 (similar for the SDK): Download and unpack (tar xzf) OOo_2.0.4_LinuxIntel_install.tar.gz from the openoffice.org site. In the OOD680_m5_native_packed-1_en-US.9073/RPMS directory (who has put this path name in a stable release?!?) you'll find the rpms. Convert them all to .tgz with the alien -t command. Create a new directory where you want OOo installed. Run tar xzf ../path/to/whatever.tgz in the destination directory for every .tgz. You'll get a new subdirectory à la opt/openoffice.org/. You can start OOo with path/to/installation/opt/openoffice.org/soffice . This naturally won't automatically assign the OOo MIME-types to your new installation or magically integrate it into your desktop environment. But it's highly useful for installing different OOo versions at the same time. Only caveat might be user preferences which are stored under ~/.openoffice.org2. You might want to back them up if you often go back to an older or possibly incompatible version. I really wish OOo would come in tarballs like this. It makes live on various distributions much easier than the RPMs. Good luck Arthur - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]