Setting up a DFC Development Environment in Eclipse

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 is c:\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

  1. Click on menu item File->New->Project
  2. From the 'New Project' window select Java->Java Project and then click on 'Next'



    Fig - New Project Window

  3. 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

  4. Select the 'Libraries' Tab and click on the 'Add External Jars' button.
  5. In the 'Jar Selection' dialog navigate to the folder that contains the dfc.jar file. On Windows, this is typically c:\Program Files\Documentum\Shared . Select all (CTRL+A) the jars in this folder and then click on 'Open'.



    Fig - Add DFC Jars

  6. Now, click on the 'Add Class Folder' button and then click on 'Create New Folder'



    Fig - Add Class Folder

  7. In the 'New Folder' dialog give some name (e.g. 'dmConfig') and click on 'Advanced'
  8. Select the 'Link to folder in filesystem' checkbox and choose the folder that contains the dfc.properties file. On Windows this is typically C:\Documentum\config



    Fig - Link to the folder containing the dfc.properties file

  9. Click on 'Ok' in both the 'New Folder' and 'Add Class Folder' dialogs
  10. Again for the sake of simplicity, keep the default project settings and click on 'Finish'.
  11. 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 select New->Class. To execute a Java class right-click on the class and select Run As->Java Application. For more details related to the Java development options, please refer to the Eclipse documentation.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值