Make sure that you have configured a valid OpenOffice.org and OpenOffice.org SDK installation
under Tools > Options > Miscellaneous > OpenOffice.org Extensions.
Use the OpenOffice.org Client Application project template.
Choose File > New Project > OpenOffice.org > OpenOffice.org Client Application.
Specify the project name. The project name is used to create a class name.
Change the class name if it should be different from the project name.
Select a Java package. Note: The Java package selection is optional.
Select the project location. The project location is the directory where the new project should be created.
Choose Run > Run Main Project or
right-click any project and choose Run Project.
Debug the project
Debugging OpenOffice.org extensions is quite simple. In the Projects window, open the context
menu and select "Debug Extension in Target Office".
OpenOffice.org is started with a new user installation that is created in the
build/soffice_debug directory. Your extension is deployed in this new user installation
and OpenOffice.org is started.