Re: [Quickfix-developers] MacBook: /Library/Java/Extensions/quickfix.jar
Brought to you by:
orenmnero
|
From: Brendan B. <br...@ka...> - 2006-06-06 01:59:34
|
I was able to reproduce another odd behavior. I reproduced this using a Java QuickFIX app I created, it is reproducible using run_executor_java (see below): $ my_java_fix_app Exception in thread "main" java.lang.UnsatisfiedLinkError: no quickfix_jni in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:992) at com.rgm.apps.GSFixServer.<clinit>(MyJavaFixApp.java:33) $ cd <...>/quickfix-1.11.2.gcc/lib $ ln -s libquickfix_jni.dylib libquickfix_jni.jnilib $ my_java_fix_app <executes successfully> My LD_LIBRARY_PATH / DYLD_LIBRARY_PATH variables are exporting <...>/quickfix-1.11.2.gcc/lib. Adding "-Djava.library.path=<...>/quickfix-1.11.2.gcc/lib" ala run_executor_java did not help either. However, removing "-Djava.library.path=../lib" from run_executor_java reproduced the problem and the fix. This is on a MacBook, I do not have access to a PPC Mac to test this. Regards, Brendan On Jun 2, 2006, at 5:37 PM, Oren Miller wrote: > I just noticed this the other day with the MacBooks. It had been > working fine on the PowerBooks, but I haven't checked in a while. > > --oren > > On Jun 2, 2006, at 2:43 PM, Brendan Boerner wrote: > >> Hi, >> >> While I've used QF off and on for about ~3.5 years it was not until >> this Spring that I used it on a MacBook. >> >> On the MacBook (and presumably the PPC versions as well) quickfix.jar >> is installed to /Library/Java/Extensions. >> >> I don't have a PPC to test this but this apparently is a problem on >> the Intel machine: >> >> $ cd quickfix/bin >> $ ./run_executor_java >> Exception in thread "main" java.lang.UnsatisfiedLinkError: create >> at quickfix.SessionSettings.create(Native Method) >> at quickfix.SessionSettings.<init>(Unknown Source) >> at Executor.main(Executor.java:40) >> >> # removing quickfix.jar from /Library/Java/Extensions is needed >> $ rm /Library/Java/Extensions/quickfix.jar >> $ ./run_executor_java >> press <enter> to quit >> >> I thought I'd mention this in case others run into the same problem. >> >> Regards, >> Brendan |