Re: "cannot find the required native library named JLinkNativeLibrary"
- To: mathgroup at smc.vnet.net
- Subject: [mg91661] Re: "cannot find the required native library named JLinkNativeLibrary"
- From: David Bailey <dave at Remove_Thisdbailey.co.uk>
- Date: Tue, 2 Sep 2008 07:18:36 -0400 (EDT)
- References: <g93b22$klo$1@smc.vnet.net>
tempo at iNumen.com wrote: > 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. > > Since nobody has come up with any better suggestions, I would start by un-installing and re-installing Mathematica. If you still have a problem, I would contact Wolfram support. David Bailey http://www.dbaileyconsultancy.co.uk