Setting up a DFC Development Environment in Eclipse

來源:互聯網
上載者:User
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.
相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.