OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Netbeans IDE 5.5.1 and OOo Add-in

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
linzta
General User
General User


Joined: 12 Jun 2007
Posts: 5
Location: CNY USA

PostPosted: Tue Jun 12, 2007 6:43 am    Post subject: Netbeans IDE 5.5.1 and OOo Add-in Reply with quote

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
View user's profile Send private message
linzta
General User
General User


Joined: 12 Jun 2007
Posts: 5
Location: CNY USA

PostPosted: Tue Jun 12, 2007 6:53 am    Post subject: Reply with quote

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
View user's profile Send private message
SergeM
Super User
Super User


Joined: 09 Sep 2003
Posts: 3211
Location: Troyes France

PostPosted: Tue Jun 12, 2007 7:58 am    Post subject: Reply with quote

See http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK particularly chapter "How to install SDK" It's a document for C++ programmer but I can use Java makefile when so installed.
_________________
Linux & Windows OOo3.0
UNO & C++ : WIKI
http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
In French
http://wiki.services.openoffice.org/wiki/Documentation/FR/Cpp_Guide
Back to top
View user's profile Send private message Visit poster's website
linzta
General User
General User


Joined: 12 Jun 2007
Posts: 5
Location: CNY USA

PostPosted: Tue Jun 12, 2007 9:54 am    Post subject: Reply with quote

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
View user's profile Send private message
linzta
General User
General User


Joined: 12 Jun 2007
Posts: 5
Location: CNY USA

PostPosted: Tue Jun 12, 2007 10:04 am    Post subject: Reply with quote

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
View user's profile Send private message
SergeM
Super User
Super User


Joined: 09 Sep 2003
Posts: 3211
Location: Troyes France

PostPosted: Wed Jun 13, 2007 5:40 am    Post subject: Reply with quote

Quote:
/home/linza/Desktop/OpenOffice.org1.1_SDK/linux/bin/idlc

Is this path compatible with the previous SDK path "/usr/lib/openoffice/sdk" ?
_________________
Linux & Windows OOo3.0
UNO & C++ : WIKI
http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
In French
http://wiki.services.openoffice.org/wiki/Documentation/FR/Cpp_Guide
Back to top
View user's profile Send private message Visit poster's website
veloce
General User
General User


Joined: 12 Nov 2007
Posts: 11

PostPosted: Mon Nov 12, 2007 5:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group