MathGroup Archive 2008

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

Search the Archive

"cannot find the required native library named JLinkNativeLibrary"

  • To: mathgroup at smc.vnet.net
  • Subject: [mg91555] "cannot find the required native library named JLinkNativeLibrary"
  • From: tempo at iNumen.com
  • Date: Wed, 27 Aug 2008 06:42:19 -0400 (EDT)

I searched this error in MathGroup and I see there is one that happened 
to Linux.

http://forums.wolfram.com/mathgroup/archive/2007/Apr/msg00078.html

It is happening to me in Windows Server 2003 x64.  I am trying to call 
MathLinkFactory.createKernelLink()


        String strArg = "-linkmode launch -linkname 'C:\\Program Files 
(x86)\\Wolfram Research\\Mathematica\\6.0\\MathKernel.exe'";
        KernelLink ml = null;

        try {
            ml = MathLinkFactory.createKernelLink(strArg);
        } catch (MathLinkException e) {
            System.out.println("Fatal error opening link: " + 
e.getMessage());
            return;
        }


And I get the following error.

    Fatal error: cannot find the required native library named
    JLinkNativeLibrary.
    Exception in thread "main" java.lang.UnsatisfiedLinkError:
    com.wolfram.jlink.NativeLink.MLOpenString(Ljava/lang/String;[Ljava/lang/String;)J
        at com.wolfram.jlink.NativeLink.MLOpenString(Native Method)
        at com.wolfram.jlink.NativeLink.<init>(NativeLink.java:113)
        at
    com.wolfram.jlink.MathLinkFactory.createMathLink0(MathLinkFactory.java:263)
        at
    com.wolfram.jlink.MathLinkFactory.createMathLink(MathLinkFactory.java:190)
        at
    com.wolfram.jlink.MathLinkFactory.createKernelLink0(MathLinkFactory.java:167)
        at
    com.wolfram.jlink.MathLinkFactory.createKernelLink(MathLinkFactory.java:65)
        at SampleProgram.SampleProgram.main(SampleProgram.java:54)

As pointed out in the link above, calling 
MathLinkFactory.createKernelLink(""); gives the same error.

I see that the JLinkNativeLibrary.dll is in 
Mathematica\6.0\SystemFiles\Links\JLink\SystemFiles\Libraries\Windows-x86-64.  
How can make JLink work without this error?

Thank you.



  • Prev by Date: Re: How to get objects closer to each other in a Graphics Grid?
  • Next by Date: Re: coloring leaves of a dendrogram
  • Previous by thread: Re: usage
  • Next by thread: problem with using external functions