| View previous topic :: View next topic |
| Author |
Message |
linzta General User


Joined: 12 Jun 2007 Posts: 5 Location: CNY USA
|
Posted: Tue Jun 12, 2007 6:43 am Post subject: Netbeans IDE 5.5.1 and OOo Add-in |
|
|
Hello,
I'm attempting to learn to use Java UNO and I've come across several frustrating speed bumps. I've managed to sort most of these out but the latest is driving me crazy. I originally was having problems with class paths and I fear that is still most likely the cause of this.
Anyways - When attempting to use the NetBeans OOo add in, I create a new project via 'New Project -> OpenOffice.org -> OpenOffice.org Calc Add-In' Once this is created I right click on the project and goto ' Create OXT'. I receive this error message:
setting up UNO environment ...
Created dir: /home/linza/Addin1/build/idl/urd
/usr/lib/openoffice/sdk/linux/bin/idlc: 4: basename: not found
/usr/lib/openoffice/sdk/linux/bin/idlc: 4: /usr/lib/openoffice/sdk/linux/bin/.bin: not found
/home/linza/Addin1/nbproject/build-uno-impl.xml:51: apply returned: 127
BUILD FAILED (total time: 0 seconds)
Any help is greatly appreciated.
Thanks,
Lindsey |
|
| Back to top |
|
 |
linzta General User


Joined: 12 Jun 2007 Posts: 5 Location: CNY USA
|
Posted: Tue Jun 12, 2007 6:53 am Post subject: |
|
|
| I also have to mention that I am unable to use makefiles to look at the examples in the SDK. most of the errors I'm receiving are saying that 'com.sun.star' does not exist... |
|
| Back to top |
|
 |
SergeM Super User

Joined: 09 Sep 2003 Posts: 3211 Location: Troyes France
|
|
| Back to top |
|
 |
linzta General User


Joined: 12 Jun 2007 Posts: 5 Location: CNY USA
|
Posted: Tue Jun 12, 2007 9:54 am Post subject: |
|
|
I followed the instructions on the site you've provided but I'm still receiving the same errors,
Just an FYI - my NetBeans OpenOffice.org API Plugin Settings are as follows:
Openoffice.org Installation: /usr/lib/openoffice
Openoffice.org SDK Installation: /usr/lib/openoffice/sdk
The error message when I run the makefile in one of the examples is :
| Code: | /usr/lib/openoffice/sdk/examples/java/Spreadsheet$ sudo make
mkdir -p ../../../LINUXexample.out/misc/JavaSpreadsheetExamples
"/linux/bin/idlc" -C -I. -I../../../idl -O../../../LINUXexample.out/misc/JavaSpreadsheetExamples XCalcAddins.idl
/bin/sh: /linux/bin/idlc: not found
make: *** [../../../LINUXexample.out/misc/JavaSpreadsheetExamples/XCalcAddins.urd] Error 127
|
And for another:
| Code: | ----------
1. ERROR in CalcAddins.java (at line 47)
import com.sun.star.comp.loader.FactoryHelper;
^^^
The import com cannot be resolved
----------
2. ERROR in CalcAddins.java (at line 48)
import com.sun.star.lang.XMultiServiceFactory;
^^^
The import com cannot be resolved
|
|
|
| Back to top |
|
 |
linzta General User


Joined: 12 Jun 2007 Posts: 5 Location: CNY USA
|
Posted: Tue Jun 12, 2007 10:04 am Post subject: |
|
|
Alright I've managed to progress past the former error messages but now I've been lucky enough to get two new ones (better than three old ones I suppose).
They are as follows:
| Code: | setting up UNO environment ...
/home/linza/Desktop/OpenOffice.org1.1_SDK/linux/bin/idlc: error while loading shared libraries: libstlport_gcc.so: cannot open shared object file: No such file or directory
/home/linza/Addin/nbproject/build-uno-impl.xml:51: apply returned: 127
BUILD FAILED (total time: 0 seconds) |
|
|
| Back to top |
|
 |
SergeM Super User

Joined: 09 Sep 2003 Posts: 3211 Location: Troyes France
|
|
| Back to top |
|
 |
veloce General User

Joined: 12 Nov 2007 Posts: 11
|
Posted: Mon Nov 12, 2007 5:04 pm Post subject: |
|
|
| linzta wrote: | Alright I've managed to progress past the former error messages
|
How did you do this? I have the same errors and can't find any way past them!
Did you get it working in the end? _________________ Ubuntu Gutsy, OpenOffice 2.3, Netbeans5.51
Working! |
|
| Back to top |
|
 |
|