Description
To setup a DFC development environment you will need at a minimum the DFC. jar and dfcbase. jar files. however, we recommend that you reference all the jar files in the folder that contains the DFC. JAR file. on Windows, this folder typically isC: \ Program Files \ Documentum \ shared. In addition, you will need any classfolders and jars of your custom business objects. another important component is the folder that contains the DFC. properties and the log4j. properties file. this folder needs to be in the classpath too.
Creating a Java project for DFC development in eclipse 3.1
-
- Click on menu itemFile-> New-> Project
-
- From the 'new project' window selectJava-> JAVA ProjectAnd then click on 'Next'
Fig-New project window
- Enter a project name (example-'simple DFC Project'). For sake of keeping things simple, keep the defaults for other options on this screen. Click on 'Next '.
Fig-Enter project name
-
- Select the 'libraries' tab and click on the 'Add external jars' button.
-
- In the 'jar Selection' dialog navigate to the folder that contains the DFC. jar file. On Windows, this is typicallyC: \ Program Files \ Documentum \ shared. Select All (CTRL + a) the jars in this folder and then click on 'open '.
Fig-Add DFC jars
-
- Now, click on the 'Add class folder' button and then click on 'create new folder'
Fig-Add class folder
-
- In the 'new folder' dialog give some name (e.g. 'dmconfig') and click on 'advanced'
- Select the 'link to folder in filesystem' checkbox and choose the folder that contains the DFC. properties file. On Windows this is typicallyC: \ Documentum \ config
Fig-Link to the folder containing the DFC. properties File
-
- Click on 'OK' in both the 'new folder' and 'add class folder' dialogs
-
- Again for the sake of simplicity, keep the default Project Settings and click on 'finish '.
-
- Eclipse will create a project with the default source and output folders. you can now create Java classes that use DFC in the project. to create a new class right-click on the source folder (or package) and selectNew-> class. To execute a Java class right-click on the class and selectRun as-> JAVA application. For more details related to the Java development options, please refer to the eclipse documentation.