Quantlib Java

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Quantlib Java

tarpanelli@libero.it
Hello,
 I've ported Quantlib in Java using skwash and I succeeded to replicate the
examples so it looks the migrations looks fine but I got the following error
when I try to define a calendar

Exception in thread "main" java.lang.UnsatisfiedLinkError: org.quantlib.
quantlibJNI.new_Brazil__SWIG_1()J
        at org.quantlib.quantlibJNI.new_Brazil__SWIG_1(Native Method)
        at org.quantlib.Brazil.<init>(Brazil.java:43)
        at org.jquantlib.DatesAndTimes.main(DatesAndTimes.java:80)

and the same is for all the other calendars.

any clue?

Thanks,
Paolo

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Quantlib Java

Simone Cerutti
Hello,

I ran into the "UnsatisfiedLinkError" while porting QuantLib in Java, too. In my case (I'm using Netbeans with a Maven project), the editor was not properly configured and the jar library was not deployed, nor located in a valid path (the java.library.path environment variable), so only at runtime I had this error. I could not configure the servlet container to have QuantLib.jar loaded as a system library, so I modified the scope of the dependency in the project (in the pom file) to have the .jar deployed with the webapp (probably not the most elegant solution, but it works now).
Hope this helps,


Simone

On Wed, Apr 4, 2012 at 6:22 PM, [hidden email] <[hidden email][hidden email][hidden email]> wrote:
Hello,
 I've ported Quantlib in Java using skwash and I succeeded to replicate the
examples so it looks the migrations looks fine but I got the following error
when I try to define a calendar

Exception in thread "main" java.lang.UnsatisfiedLinkError: org.quantlib.
quantlibJNI.new_Brazil__SWIG_1()J
       at org.quantlib.quantlibJNI.new_Brazil__SWIG_1(Native Method)
       at org.quantlib.Brazil.<init>(Brazil.java:43)
       at org.jquantlib.DatesAndTimes.main(DatesAndTimes.java:80)

and the same is for all the other calendars.

any clue?

Thanks,
Paolo

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users


------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Quantlib Java

jingtao wang
In reply to this post by tarpanelli@libero.it
hello Paolo:

 I'm also ported Quantlib in Java with SWIG.
 but I got the same following error like underdown when I try to define a calendar.
==============================
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.quantlib.
quantlibJNI.new_Brazil__SWIG_1()J
        at org.quantlib.quantlibJNI.new_Brazil__SWIG_1(Native Method)
        at org.quantlib.Brazil.<init>(Brazil.java:43)
        at org.jquantlib.DatesAndTimes.main(DatesAndTimes.java:80)
==============================

how didn't you resolve the questions?

thanks a lot

wang