|
From: Banerjee, T. K <tap...@jp...> - 2019-07-09 20:17:23
|
Hello,
We tried to build Quantlib SWIG using the steps mentioned in Quantlib site.
We could successfully build and run needed quatlib so, JNI as DLL for Window box.
It runs fine from my Windows desktop.
But when I copy the code on our Window server, while running, I am getting below error.
= On Window Server ====
C:\SBOR-Valuation\HelloWorld\out\production\HelloWorld>java -Djava.library.path=
C:\SBOR-Valuation\HelloWorld examples.Bonds
Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\Java\bin\QuantLibJ
NI.dll: Can't find dependent libraries
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)
== My local box - exact same code ==== WORKS FINE ================
C:\Valuation-NT\HelloWorld\out\production\HelloWorld>java -Djava.library.path=C:\Valuation-NT\HelloWorld examples.Bonds
Today: Monday, September 15th, 2008
Settlement date: Thursday, September 18th, 2008
ZC Fixed Floating
Net present value 100.92 107.67 102.36
Clean price 100.92 106.13 101.80
Dirty price 100.92 107.67 102.36
Yield 3.00 % 3.65 % 2.20 %
I suspect some dependent System libraries missing at our NT server.
Any idea what all are Window dependent libraries for QuantLibJNI.dll ?
Any other pointers what I missing?
QuantLibJNI.dll located at the directory mentioned at Djava.library.path
Thanks,
This message is confidential and subject to terms at: https://www.jpmorgan.com/emaildisclaimer including on confidential, privileged or legal entity information, viruses and monitoring of electronic messages. If you are not the intended recipient, please delete this message and notify the sender immediately. Any unauthorized use is strictly prohibited.
|