MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: JLink error

  • To: mathgroup at
  • Subject: [mg106260] Re: [mg106222] JLink error
  • From: Patrick Scheibe <pscheibe at>
  • Date: Wed, 6 Jan 2010 06:01:55 -0500 (EST)
  • References: <>


the JLink uses MathLink which is a C-Library and the only real link to
Mathematica. Everthing in Java seems to use this connection.
When you start to use JLink it loads this JLinkNativeLibrary.dll library
through JNI, the java native interface
( and this step
obviously fails.

You can have a look at the sources if it helps to understand. It is


in the file
What you have to do is to find out why java doesn't find this library
when it starts. You have this dll under the above mentioned path 


but it should be installed globaly anyway.
This is the plan and the information I can provide. The rest is up to
you since it is hard to guess what's wrong from here.

Maybe you should try first to place the JLinkNativeLibrary.dll directly
into the directory of your application if you use Windoze.

Good Look.


On Tue, 2010-01-05 at 01:47 -0500, cynthia wu wrote:
> I created a jar file that runs methods that I have created in
> Mathematica.  The java file has everything(libraries, import) it needs
> to connect to the Mathematica Kernel and run the methods.
> My issue is that I am using my jar file in Ruby.  I have imported the
> jlink library, my jar file, and everything else I feel it needs to run
> my java file.  However, I am getting the current error:
> Fatal error: cannot find the required native library named
> JLinkNativeLibrary.dll
> Any suggestions would be greatly appreciated.

  • References:
    • JLink error
      • From: cynthia wu <>
  • Prev by Date: Re: Re: Wrong ODE solution in Mathematica 7?
  • Next by Date: Re: Re: More /.{I->-1} craziness
  • Previous by thread: JLink error
  • Next by thread: Re: JLink error