[Quickfix-developers] (no subject)
Brought to you by:
orenmnero
|
From: Eranga S. <pe...@ri...> - 2007-06-22 13:18:38
|
Hi,
I want to run the quickfix 1.12.4 on windows . I took a fresh machine and
installed java 1.5 and msxml3 there. Then I ran a my program there to test
JNI. ( Pl look the code below ) . Then I am got the following error.
C:\fix_test\test_JNI\bin>java -Djava.library.path=../lib JNITest
Exception in thread "main" java.lang.UnsatisfiedLinkError:
C:\fix_test\test_JNI\
lib\quickfix_jni.dll: This application has failed to start because the
applicati
on configuration is incorrect. Reinstalling the application may fix this
problem
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at JNITest.<clinit>(JNITest.java:8)
My Djava.library.path was correct. All other classpaths were ok. I think
quickifix depends on some other .dll on windows plat form. I can't figure
out what are they. Because when I install the Visual Studio 2005 IDE. It
start working. I am wonder what is this hidden dependency.
I build the quickfix using VS2005 .
public class JNITest{
static{
System.loadLibrary("quickfix_jni");
}
public static void main(String args[]) throws Exception{
System.out.println("Start the JNI Compatibility Test
Program....");
Message m = new Message();
SessionSettings settings = new SessionSettings(new
FileInputStream("../test.cfg"));
MessageStoreFactory messageStoreFactory = new
FileStoreFactory(settings);
LogFactory logFactory = new FileLogFactory(settings);
MessageFactory messageFactory = new DefaultMessageFactory();
System.out.println("Successfully Loaded the JNI....");
}
}
Regards,
Eranga
|