QadevOOo and NetBeans
From Apache OpenOffice Wiki
This documents describes how to use NetBeans with qadevOOo.
At first you have to download and install NetBeans and a JDK or similar Version >= 1.4 .
If you have NetBeans running, just use the implemented CVS client.
Contents
Check out
- Open CVS->check out
- CVS-Root: :pserver:anoncvs@anoncvs.services.openoffice.org:/cvs
- password: anoncvs
- Next
- Module qa/qadevOOo
- Branch empty
- Local folder : $YourTarget
- Finish
Then you get the qadevOOo tree.
create a NetBeans Project
- choose File -> new Project
- categories: General
- projects: Java Project with Existing Sources
- next
- project Name: qadevOOo
- project Folder: $YourTarget
- next
- add Folder: $YourTarget/qa/qadevOOo/runner
- add Folder: $YourTarget/qa/qadevOOo/tests/java
- finish
The project will be created.
add additional libraries
Now you have to add the jar files from your office installation:
- open the properties of your project
- libraries
- compile-time Libraries
- add JAR/Foder:
- $OFFICEINSTALLATION/program/classes/juh.jar
- $OFFICEINSTALLATION/program/classes/jurt.jar
- $OFFICEINSTALLATION/program/classes/jut.jar
- $OFFICEINSTALLATION/program/classes/ridl.jar
- $OFFICEINSTALLATION/program/classes/unoil.jar
Now you should be able compile the project.
set the main class
- open the properties of your project
- Run
- browse
- select org.openoffice.Runner
create a runner.props file
Now you have to create a runner.props file. Please note RunnerProps. Currently we need only:
TestDocumentPath=$YourTarget/qa/qadevOOo/testdocs DescriptionPath=$YourTarget/qa/qadevOOo/objdsc TestJob=-o sw.SwXBodyText
This will enable the Runner to test the writer implementation SwXBodyText