Hello,
I've ported Quantlib in Java with QuantLib-SWIG-1.2.zip. but I got the following error(using the EquityOptions.java also has the UnsatisfiedLinkError). unfortunatly i couldn't found the solution. 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, jingtao wang ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
I'm not using the Java module, but from the thread at
<http://quantlib.10058.n7.nabble.com/Quantlib-Java-td1235.html#a1236> it seems that QuantLib.jar is not in your PATH. Have you checked that? Luigi On Sat, Jan 26, 2013 at 10:43 AM, 静涛 王 <[hidden email]> wrote: > Hello, > I've ported Quantlib in Java with QuantLib-SWIG-1.2.zip. > but I got the following error(using the EquityOptions.java also has the > UnsatisfiedLinkError). > I've searched the mail list and find Paolo and Richard Gomes has the same > question but they solved. > unfortunatly i couldn't found the solution. > > 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, > jingtao wang > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnnow-d2d > _______________________________________________ > QuantLib-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/quantlib-users > ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hi Luigi
thanks for the replay. I have searched the mail list before i ask the question. I think the dll has been correctly loaded. Because the other class such as Date could return the value. I have saw (http://www.swig.org/Doc1.3/Java.html). but unfortunatly i couldn't found the solution. I followed the attach files to make the JNL. I also tryed the (http://www.bnikolic.co.uk/ql/java.html) builds. but also has the question. EquityOptions.java could correctly run in your machine? if could. didn't you share your dll and jar? thanks a lot. jingtao wang > Date: Tue, 29 Jan 2013 17:26:44 +0100 > Subject: Re: [Quantlib-users] SWIG(java) UnsatisfiedLinkError > From: [hidden email] > To: [hidden email] > CC: [hidden email] > > I'm not using the Java module, but from the thread at > <http://quantlib.10058.n7.nabble.com/Quantlib-Java-td1235.html#a1236> > it seems that QuantLib.jar is not in your PATH. Have you checked > that? > > Luigi > > On Sat, Jan 26, 2013 at 10:43 AM, 静涛 王 <[hidden email]> wrote: > > Hello, > > I've ported Quantlib in Java with QuantLib-SWIG-1.2.zip. > > but I got the following error(using the EquityOptions.java also has the > > UnsatisfiedLinkError). > > I've searched the mail list and find Paolo and Richard Gomes has the same > > question but they solved. > > unfortunatly i couldn't found the solution. > > > > 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, > > jingtao wang > > > > ------------------------------------------------------------------------------ > > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > > MVPs and experts. ON SALE this month only -- learn more at: > > http://p.sf.net/sfu/learnnow-d2d > > _______________________________________________ > > QuantLib-users mailing list > > [hidden email] > > https://lists.sourceforge.net/lists/listinfo/quantlib-users > > ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users make quantlibJNL.txt (7K) Download Attachment |
The example works on my machine, but I'm running Linux. I'm afraid I
have no clue on what's happening... Ideas, anyone? Luigi On Wed, Jan 30, 2013 at 3:07 AM, 静涛 王 <[hidden email]> wrote: > Hi Luigi > > thanks for the replay. > I have searched the mail list before i ask the question. > I think the dll has been correctly loaded. Because the other class such as > Date could return the value. > > I have saw (http://www.swig.org/Doc1.3/Java.html). but unfortunatly i > couldn't found the solution. > I followed the attach files to make the JNL. > I also tryed the (http://www.bnikolic.co.uk/ql/java.html) builds. but also > has the question. > EquityOptions.java could correctly run in your machine? > if could. didn't you share your dll and jar? > > thanks a lot. > jingtao wang > >> Date: Tue, 29 Jan 2013 17:26:44 +0100 >> Subject: Re: [Quantlib-users] SWIG(java) UnsatisfiedLinkError >> From: [hidden email] >> To: [hidden email] >> CC: [hidden email] > >> >> I'm not using the Java module, but from the thread at >> <http://quantlib.10058.n7.nabble.com/Quantlib-Java-td1235.html#a1236> >> it seems that QuantLib.jar is not in your PATH. Have you checked >> that? >> >> Luigi >> >> On Sat, Jan 26, 2013 at 10:43 AM, 静涛 王 <[hidden email]> wrote: >> > Hello, >> > I've ported Quantlib in Java with QuantLib-SWIG-1.2.zip. >> > but I got the following error(using the EquityOptions.java also has the >> > UnsatisfiedLinkError). >> > I've searched the mail list and find Paolo and Richard Gomes has the >> > same >> > question but they solved. >> > unfortunatly i couldn't found the solution. >> > >> > 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, >> > jingtao wang >> > >> > >> > ------------------------------------------------------------------------------ >> > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, >> > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current >> > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft >> > MVPs and experts. ON SALE this month only -- learn more at: >> > http://p.sf.net/sfu/learnnow-d2d >> > _______________________________________________ >> > QuantLib-users mailing list >> > [hidden email] >> > https://lists.sourceforge.net/lists/listinfo/quantlib-users >> > ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
In reply to this post by 静涛 王
One thing to check is that all of the dependencies of the JNI dll can be satisfied -- best to use the "windows dependency walker" for this. Best, Bojan -- Bojan Nikolic || http://www.bnikolic.co.uk ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Right. For instance, does your project for the C++ library include
<ql/time/calendars/brazil.cpp>? Luigi On Wed, Jan 30, 2013 at 11:11 AM, Bojan Nikolic <[hidden email]> wrote: > > One thing to check is that all of the dependencies of the JNI dll can be > satisfied -- best to use the "windows dependency walker" for this. > > Best, > Bojan > > -- > Bojan Nikolic || http://www.bnikolic.co.uk ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
thanks.
I'll try. If i can resolved the error. I'll report it. jingtao wang > Date: Wed, 30 Jan 2013 11:25:23 +0100 > Subject: Re: [Quantlib-users] SWIG(java) UnsatisfiedLinkError > From: [hidden email] > To: [hidden email] > CC: [hidden email]; [hidden email] > > Right. For instance, does your project for the C++ library include > <ql/time/calendars/brazil.cpp>? > > Luigi > > On Wed, Jan 30, 2013 at 11:11 AM, Bojan Nikolic <[hidden email]> wrote: > > > > One thing to check is that all of the dependencies of the JNI dll can be > > satisfied -- best to use the "windows dependency walker" for this. > > > > Best, > > Bojan > > > > -- > > Bojan Nikolic || http://www.bnikolic.co.uk ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hi.
The methord's name In the QuantLibJNL.dll file like : =========================================== Java_org_quantlib_QuantLibJNI_SWIGTARGETUpcast =========================================== but the QuantlibJNL.class in the QuantLib.jar is: =========================================== public static final native long TARGET_SWIGUpcast(long paramLong); =========================================== This is the reason? if it is. How can resolve it? thanks jingtao wang From: [hidden email] To: [hidden email]; [hidden email] CC: [hidden email] Subject: RE: [Quantlib-users] SWIG(java) UnsatisfiedLinkError Date: Fri, 1 Feb 2013 14:03:41 +0800 thanks. I'll try. If i can resolved the error. I'll report it. jingtao wang > Date: Wed, 30 Jan 2013 11:25:23 +0100 > Subject: Re: [Quantlib-users] SWIG(java) UnsatisfiedLinkError > From: [hidden email] > To: [hidden email] > CC: [hidden email]; [hidden email] > > Right. For instance, does your project for the C++ library include > <ql/time/calendars/brazil.cpp>? > > Luigi > > On Wed, Jan 30, 2013 at 11:11 AM, Bojan Nikolic <[hidden email]> wrote: > > > > One thing to check is that all of the dependencies of the JNI dll can be > > satisfied -- best to use the "windows dependency walker" for this. > > > > Best, > > Bojan > > > > -- > > Bojan Nikolic || http://www.bnikolic.co.uk ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hi.
Finally I have completed the SWIG for Java under Windows and MS Visual Studio 2010 based on Francis Duffy's email. the UnsatisfiedLinkError is the methord doesn't exist in the quantlibJNL.dll file. thanks jingtao wang From: [hidden email] To: [hidden email]; [hidden email] CC: [hidden email] Subject: RE: [Quantlib-users] SWIG(java) UnsatisfiedLinkError Date: Fri, 12 Apr 2013 19:19:08 +0800 Hi. The methord's name In the QuantLibJNL.dll file like : =========================================== Java_org_quantlib_QuantLibJNI_SWIGTARGETUpcast =========================================== but the QuantlibJNL.class in the QuantLib.jar is: =========================================== public static final native long TARGET_SWIGUpcast(long paramLong); =========================================== This is the reason? if it is. How can resolve it? thanks jingtao wang From: [hidden email] To: [hidden email]; [hidden email] CC: [hidden email] Subject: RE: [Quantlib-users] SWIG(java) UnsatisfiedLinkError Date: Fri, 1 Feb 2013 14:03:41 +0800 thanks. I'll try. If i can resolved the error. I'll report it. jingtao wang > Date: Wed, 30 Jan 2013 11:25:23 +0100 > Subject: Re: [Quantlib-users] SWIG(java) UnsatisfiedLinkError > From: [hidden email] > To: [hidden email] > CC: [hidden email]; [hidden email] > > Right. For instance, does your project for the C++ library include > <ql/time/calendars/brazil.cpp>? > > Luigi > > On Wed, Jan 30, 2013 at 11:11 AM, Bojan Nikolic <[hidden email]> wrote: > > > > One thing to check is that all of the dependencies of the JNI dll can be > > satisfied -- best to use the "windows dependency walker" for this. > > > > Best, > > Bojan > > > > -- > > Bojan Nikolic || http://www.bnikolic.co.uk ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hello,
I'm not sure I understood. By "completed" do you mean that you were successful, or is the error still there? Luigi On Wed, Apr 17, 2013 at 5:18 AM, 静涛 王 <[hidden email]> wrote: > Hi. > Finally I have completed the SWIG for Java under Windows and MS Visual > Studio 2010 based on Francis Duffy's email. > the UnsatisfiedLinkError is the methord doesn't exist in the quantlibJNL.dll > file. > > thanks > jingtao wang > ________________________________ > From: [hidden email] > To: [hidden email]; [hidden email] > CC: [hidden email] > Subject: RE: [Quantlib-users] SWIG(java) UnsatisfiedLinkError > Date: Fri, 12 Apr 2013 19:19:08 +0800 > > > Hi. > > The methord's name In the QuantLibJNL.dll file like : > =========================================== > Java_org_quantlib_QuantLibJNI_SWIGTARGETUpcast > =========================================== > > but the QuantlibJNL.class in the QuantLib.jar is: > =========================================== > public static final native long TARGET_SWIGUpcast(long paramLong); > =========================================== > > This is the reason? > if it is. > How can resolve it? > > thanks > jingtao wang > ________________________________ > From: [hidden email] > To: [hidden email]; [hidden email] > CC: [hidden email] > Subject: RE: [Quantlib-users] SWIG(java) UnsatisfiedLinkError > Date: Fri, 1 Feb 2013 14:03:41 +0800 > > thanks. > I'll try. If i can resolved the error. > I'll report it. > > jingtao wang > >> Date: Wed, 30 Jan 2013 11:25:23 +0100 >> Subject: Re: [Quantlib-users] SWIG(java) UnsatisfiedLinkError >> From: [hidden email] >> To: [hidden email] >> CC: [hidden email]; [hidden email] >> >> Right. For instance, does your project for the C++ library include >> <ql/time/calendars/brazil.cpp>? >> >> Luigi >> >> On Wed, Jan 30, 2013 at 11:11 AM, Bojan Nikolic <[hidden email]> >> wrote: >> > >> > One thing to check is that all of the dependencies of the JNI dll can be >> > satisfied -- best to use the "windows dependency walker" for this. >> > >> > Best, >> > Bojan >> > >> > -- >> > Bojan Nikolic || http://www.bnikolic.co.uk > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > QuantLib-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/quantlib-users > ------------------------------------------------------------------------------ Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with <2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1 _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
I'm sorry for my english.
I'm successful. In win7 and win2003 the dll and the jar worked well. I'm using the swap's pricing function at present. by the way. The dll and jar was provied at the blow website didnot work. http://www.bnikolic.co.uk/ql/java.html thanks. jingtao Wang > Date: Thu, 2 May 2013 16:12:29 +0200 > Subject: Re: [Quantlib-users] SWIG(java) UnsatisfiedLinkError > From: [hidden email] > To: [hidden email] > CC: [hidden email]; [hidden email] > > Hello, > I'm not sure I understood. By "completed" do you mean that you > were successful, or is the error still there? > > Luigi > > On Wed, Apr 17, 2013 at 5:18 AM, 静涛 王 <[hidden email]> wrote: > > Hi. > > Finally I have completed the SWIG for Java under Windows and MS Visual > > Studio 2010 based on Francis Duffy's email. > > the UnsatisfiedLinkError is the methord doesn't exist in the quantlibJNL.dll > > file. > > > > thanks > > jingtao wang > > ________________________________ > > From: [hidden email] > > To: [hidden email]; [hidden email] > > CC: [hidden email] > > Subject: RE: [Quantlib-users] SWIG(java) UnsatisfiedLinkError > > Date: Fri, 12 Apr 2013 19:19:08 +0800 > > > > > > Hi. > > > > The methord's name In the QuantLibJNL.dll file like : > > =========================================== > > Java_org_quantlib_QuantLibJNI_SWIGTARGETUpcast > > =========================================== > > > > but the QuantlibJNL.class in the QuantLib.jar is: > > =========================================== > > public static final native long TARGET_SWIGUpcast(long paramLong); > > =========================================== > > > > This is the reason? > > if it is. > > How can resolve it? > > > > thanks > > jingtao wang > > ________________________________ > > From: [hidden email] > > To: [hidden email]; [hidden email] > > CC: [hidden email] > > Subject: RE: [Quantlib-users] SWIG(java) UnsatisfiedLinkError > > Date: Fri, 1 Feb 2013 14:03:41 +0800 > > > > thanks. > > I'll try. If i can resolved the error. > > I'll report it. > > > > jingtao wang > > > >> Date: Wed, 30 Jan 2013 11:25:23 +0100 > >> Subject: Re: [Quantlib-users] SWIG(java) UnsatisfiedLinkError > >> From: [hidden email] > >> To: [hidden email] > >> CC: [hidden email]; [hidden email] > >> > >> Right. For instance, does your project for the C++ library include > >> <ql/time/calendars/brazil.cpp>? > >> > >> Luigi > >> > >> On Wed, Jan 30, 2013 at 11:11 AM, Bojan Nikolic <[hidden email]> > >> wrote: > >> > > >> > One thing to check is that all of the dependencies of the JNI dll can be > >> > satisfied -- best to use the "windows dependency walker" for this. > >> > > >> > Best, > >> > Bojan > >> > > >> > -- > >> > Bojan Nikolic || http://www.bnikolic.co.uk > > > > ------------------------------------------------------------------------------ > > Precog is a next-generation analytics platform capable of advanced > > analytics on semi-structured data. The platform includes APIs for building > > apps and a phenomenal toolset for data science. Developers can use > > our toolset for easy data analysis & visualization. Get a free account! > > http://www2.precog.com/precogplatform/slashdotnewsletter > > _______________________________________________ > > QuantLib-users mailing list > > [hidden email] > > https://lists.sourceforge.net/lists/listinfo/quantlib-users > > ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |