Apache OpenOffice (AOO) Bugzilla – Issue 79367
Template Java file missing
Last modified: 2017-05-20 09:32:02 UTC
My platform is Ubuntu 7.04 (Feisty). I use the OOo 2.2 and the SDK 2.2 packages that both comes with the distro. I use the version of Netbeans 5.5.1 for Linux that comes in a bundle with JDK 1.6.0. After installing the OOo Netbeans integration, I wanted to make an OpenOffice.org Add-on. So I started with completing the wizard. The wizard created two files in Default Package, Addons.xcu and ProtocolHandler.xcu. All fine - but where should my Java code go?? I tried making a small Java file, but when I tried to deploy the oxt, it failed. I tried in many different ways, but the same thing happened. At last, after spending a whole day with this, I found this description of a Java template file that apparently should have been generated in my project: http://wiki.services.openoffice.org/wiki/OpenOffice_Add-On_Project_Type After copying and pasting the Java code into a new file (and manually removing all the lines numbers), I was finally able to create an oxt that would actually work! The conclusion is, that for some reason the template Java file never shows up. I have tried the same thing on another machine with the same software setup - same problem.
Accepted. But seems to be a Ubuntu problem, perhaps with the installation of OpenOffice and SDK.
set a target.
i have the same problem on windows xp, nb 5.5.1, staroffice 8, sdk 2.2 the java source file wasn't created correctly, i found the file in <nb install dir>/bin where it was named as a tempfile and also folder structure "<mymodulename>src\org\openoffice" was created there. after moving and renaming the java source file i was able to compile the plugin
update - it works fine with openoffice 2.2.1 (i also installed it into a path without spaces just in case)
mt->sg: Since you are currently working on a new version of the NB plugin, please make sure that version also works with StarOffice...
Obsolete version