今天做了一些dfc 环境的调查,下边是觉得可能有用的文章。
deploying a standalone DFC app in Windows 2000 (only using DFC components) I did the following ...
JAVAREG /register /control /class:com.documentum.com.DfClientX /codebase:"C:\Program Files\Documentum\Shared\dfc.jar" /typelib:dfc.tlb /nomktyplib clsid:{EFAC2dD80-175B-112D-006097C27C31} /progid:Documentum.Dfc
I copied dmcl40.dll (Version 4.2.1.18) and dfc.tlb (Dated 12/3/2001) into the C:\WINNT\SYSTEM32 directory and the dfc.jar (Dated 4/26/2001) into the C:\PROGRAM FILES\DOCUMENTUM\SHARED directory.
When I run my VB 6 app. I get an error on the line
SET dcx = CreateObject("Documentum.Dfc")
Classfactory cannot supply requested class.
For anyone with a similar problem, here was the solution that worked for me.
I added a user environment variable called CLASSPATH and pointed it at the dfc.jar file. Worked great!
ClassPath : D:\dfc\dll\dctm.jar;D:\dfc\dll\dfc.jar;C:\Documentum\config
http://www.bluefishgroup.com/library/2002/configuring-the-dfc-standalone/
A common problem and/or question I see is “How do I use/install the DFC Standalone?”, albeit in different forms. If you install the Documentum Intranet Client or other Documentum applications that utilize the DFC, the DFC and required supporting libraries or DLL’s will be properly installed. If however, you want to access Documentum using the DFC on a machine that has no other Documentum applications, you will need to correctly configure your environment.
This article describes how to properly configure your environment to use the DFC standalone, addresses some errors you may encounter and discusses possible causes of those errors. Additionally, I have written a Java application that can be used to validate your environment. You can download it at: Check42DFEnvironment Application
You can also download the DFC Environment for Windows/NT and DFC Environment for Solaris which include DCTM DLL’s, Solaris library, and dfc.jar required to use the 4.2 version of the DFC.
dfcenv.zip
to some folder. dfcenv.jar
to some directory (e.g. /home/username/dfcenv) and install Check42DFEnvironment to some other directory (e.g. /home/username/DCTMapp). dfcenv.jar
. How you do this depends on the shell you are using. Assuming you unjarred dfcenv.jar to /home/username/dfcenv,
java.lang.NoClassDefFound: com/documentum/fc/common/....
Indicates that you probably haven’t included the dfc.jar in your Java classpath or the dfc.jar file itself does not exist in any directories/folders that are part of your classpath
[DM_DFC_E_INIT_DMCL]error: “Error occurred while trying to initialize the DMCL: java.lang.UnsatisfiedLinkError: initialize.”; ERRORCODE: 205; NEXT: null
This error message can indicate a number of problems with the set up of your environment. These include:
In Solaris,
In Windows/NT,
Installing and Running On Windows/NT
Installing and Running On Solaris