vijay patil wrote:
On Feb 3, 2008 12:56 AM, Ariel Constenla-Haile
<[EMAIL PROTECTED]> wrote:
Unfortunately, no; see
http://wiki.services.openoffice.org/wiki/OpenOffice_NetBeans_Integration/Releases/Release_1.2
You can use NetBeans CVS to download the sources form the OOo API
project, and build it yourself. I did it with NB 5, with NB 6 I just got
build errors.
I send you a copy to your address. I have just build it [1], and install
it on NB 6.0, and it works! :-) The only error message you get when
installing is that the extension is not signed, but just go on, and
install it.
Notice you will have to download and install the OOo SDK:
http://download.openoffice.org/sdk.html
Yes, I already have OO.org SDK installed. I received OO.org API
plug-in that you created (using latest source code and NetBeans IDE
5.0).
I installed it, It is working correctly. I can now see 4 project templates in :
File >> New Project >> OpenOffice.org
I was also able to build and run a simple client application (which
connects to running office).
Thank you Ariel for your help !
So I conclude that problem (i.e. plug-in not working with NetBeans IDE
6.0) exists with version 1.1 of OO.org API.
This problem seems to be fixed in latest source code of plug-in in CVS
and therefore Ariel was able to build a plug-in
which worked fine in NetBeans 6.0. Another known issue seems that
OO.org API plug-in cannot be built using NetBeans IDE 6.0.
i am not sure if the cvs contains already the latest changes but the
most of the issue are fixed. We still have one issue that IDL types are
recognized as unknown types in new projects. That is not really an error
because you can build the project and everything works fine. It depends
on the new editor features of NetBeans (background compiling etc.) We
generate for compatibility reasons class files directly instead of Java
code files. And NetBeans requires code files for everything that is new
in a project and is used as a Java type ...
I am not sure if we can really smart fix this problem but the plugin
works and i will provide at least an unsigned version next week online
on the api project side.
And of course i will also try to provide via the NetBeans update center.
See also http://api.openoffice.org/ , and of course I suggest you to
join the API mailing list (proper than this one for API related themes)
[EMAIL PROTECTED] , and also the extensions mailing list
[EMAIL PROTECTED] .
Sure.
Please notice also that soon all the examples from the OOo SDK will be
available as NetBeans Projects.
I have already finished all text documents examples
(sdk/examples/java/Text and sdk/examples/DevelopersGuide/Text). This
weekend I hope to finish the spreasheet examples.
This will definitely help newbies. I believe right now there two
procedures to use examples provided with OO.org SDK.
Following are (NetBeans 6.0 specific) instructions for compiling and
running SDK examples,
just to clarify my understanding and for future reference.
Sample programs are in SDK directory. For example:
C:\Program Files\OpenOffice.org_2.3_SDK\examples\java\Text
# Procedure 1 (As a simple Java application)
1. Create a new project.
File >> New Project >> Java >> Java Application
2. We are going to copy example code, so no need to create any class.
3. Now copy example code (for example: SWriter.java) into the project.
4. This code is dependent on OO.org API (libraries), therefore we must
add the libraries.
Window >> Projects >> Libraries >> RightClick >> Add Library >> OpenOffice 2.x
This add all relevant libraries (.jar files)
5. Build and Run the app.
no that is not enough to use the simple bootstrap mechanism. I suggest
that you forget this approach for client applications and use the wizard
(#2). The wizard adds the OO.org library to new projects and extends the
jar target to pack some necessary precompiled class files from the SDK
to your client application (bootstrap glue code). That is the main
interesting feature behind the client application wizard.
This code search the default office on the local machine, start if
necessary a new instance of the office and connects via a named pipe.
The bootstrap call returns the remote office context object that can be
used for any further communication with the office ....
Juergen
--------------------
# Procedure 2 (Using OO.org API Plugin)
1. Install OO.org API plugin.
2. Choose File >> New Project >> OpenOffice.org >> OO.org Client App
3. This creates a sample code OfficeUNOClientApp.java, the relevant
OO.org libraries are automatically added.
4. Replace sample code with desired example (say SWriter.java)
5. Build and Run the app.
----------
This is what I understood in last few days, correct me if I am wrong.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]