Originally posted by: Karthik_Varma
Hi,
I am trying to run a WTX 8.4.0.3 (32-bit) map from Eclipse IDE java program. (Not Eclipse based WTX Studio)
I have added dtxpi.jar, m4java.jar as dependencies to my project.
My java program looks like:
public static void main( String[] args ) throws MException
{
MMap.initializeAPI(null); // failing at this line
MMap map = new MMap("MyFirstMap.mmc"); //fails at this line too if i comment out above line
MCard card = map.getInputCardObject(1);
System.out.println(card.getAllPropertiesXML(true));
}
When i try to run this java program, i am seeing this error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: <WTXinstall-location>\dtxjpi.dll: The specified procedure could not be found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1732)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at com.ibm.websphere.dtx.dtxpi.MBase.<clinit>(Unknown Source)
Steps i have done to resolve:
1. Check the PATH variable, if it set correctly.
2. Verified if dtxjpi.dll is present in the location.
3. Copied dtxjpi64.dll file to check if my dll file is not correct. ( i copied this from my colleague system who have 64 bit version of WTX)
4. -Djava.library.path="${workspace_loc:edi-claims-modification-util}\lib;${env_var:DTX_HOME_DIR}" passed this as VM argument while executing the java program from eclipse. DTX_HOME_DIR is my WTX Install Directory.
I am not able to resolve the problem by the above steps and any help would be aprreciated. Could anyone please let me know if i am missing anything?
#IBMSterlingTransformationExtender#DataExchange#IBM-Websphere-Transformation-Extender