|
From: Banerjee, T. K <tap...@jp...> - 2019-08-07 15:48:47
|
Luigi,
You are right, I used dependency walker saw VCC+ Apis were missing at server box.
I installed those, it worked fine.
Thanks,
From: Luigi Ballabio [mailto:lui...@gm...]
Sent: Wednesday, August 07, 2019 10:55 AM
To: Banerjee, Tapas K <tap...@jp...>
Cc: QuantLib developers <qua...@li...>
Subject: Re: [Quantlib-dev] Help-QuantLib run issue java.lang.UnsatisfiedLinkError - on Window box.
Hello,
the only thing that comes to mind is that you may possibly need the Visual C++ Redistributable Runtime. You can download it from Microsoft.
Luigi
On Tue, Jul 9, 2019 at 10:18 PM Banerjee, Tapas K via QuantLib-dev <qua...@li...<mailto:qua...@li...>> wrote:
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.
_______________________________________________
QuantLib-dev mailing list
Qua...@li...<mailto:Qua...@li...>
https://lists.sourceforge.net/lists/listinfo/quantlib-dev<https://secureweb.jpmchase.net/readonly/https:/lists.sourceforge.net/lists/listinfo/quantlib-dev>
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.
|