Apache OpenOffice (AOO) Bugzilla – Issue 5467
Misleading information about the StarOffice 5.2 SDK
Last modified: 2013-02-24 21:07:03 UTC
I have been trying to get the examples in the StarOffice 5.2 SDK to work with the above version of OpenOffice (SCalc.java). I'm not sure if it has something to do with my configuration but several components that I thought were implemented already come as being not found when I compile this example. The only reason that I have posted this issue is because I have spent a considerable amount of time trying to get it to work, researching the compile errors, and figuring out who to contact about this issue. My impression from the beginning up until now is that you could run these examples with the latest version of java and openoffice. Sorry to have bothered anyone if this is not the right place to post this issue.
I do not understand the problem. Please state with which example of the SO 5.2 SDK there is a problem.
Here is the information that should explain the problem better: I am trying to compile the file SCalc.java or even better yet, run the precompiled file SCalc.class and I get the following errors... (Windows 98 MS-DOS) c:\[openoffice.org-file-structure]> javac SCalc.java SCalc.java:307: Method addFactories(java.lang.String[]) not found in class com.sun.star.comp.servicemanager.ServiceManager. serviceManager.addFactories( neededServices ); ^ SCalc.java:322: Incompatible type for method. Can't convert java.lang.Class to com.sun.star.uno.Type.Object rInitialObject = iBridge.mapInterfaceFrom( rootOid, XInterface.class ); ^ SCalc.java:377: Exception com.sun.star.lang.IndexOutOfBoundsException must be caught, or it must be declared in the throws clause of this method. XCell oCell = TT1.getCellByPosition(CellX, CellY); ^ c:\[openoffice.org-file-structure]> java SCalc getting MultiServiceFactory Exception in thread "main" java.lang.NoSuchMethodError at SCalc.connect(SCalc.java:310) at SCalc.main(SCalc.java:82) Well, that seems like a lot to put on one of these forums. If you are wondering where I got these files, when I downloaded the SDK, they fell under ..\staroffice_sdk\addon\java\samples\*. I was under the impression that they would work, but at the moment they do not with my current configuration. I must admit that I am not quite sure that I know what I am talking about but I think that I know how to compile a file. Sorry if this is a pointless problem.
The SDK for OOo 1.0.1 is coming out these days. We cannot support the SDK for 5.2 anymore, at least not on OOo.