Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: JLink broken on Snow Leopard

  • To: mathgroup at smc.vnet.net
  • Subject: [mg104178] Re: JLink broken on Snow Leopard
  • From: fd <fdimer at gmail.com>
  • Date: Thu, 22 Oct 2009 02:17:50 -0400 (EDT)
  • References: <hbmnsh$jjv$1@smc.vnet.net>

On Oct 21, 9:30 pm, keven <keven... at gmail.com> wrote:
> Hi,
>
> I have written an app that connects to Mathematica kernel via JLink.
> The app no longer worked after I upgraded to Snow Leopard.  Running
> the JLink SampleProgram returns following error:
>
> Fatal error: cannot find the required native library named
> JLinkNativeLibrary.
> Exception in thread "main" java.lang.UnsatisfiedLinkError:
> com.wolfram.jlink.NativeLink.MLOpen(I[Ljava/lang/String;[Ljava/lang/
> String;)J
>         at com.wolfram.jlink.NativeLink.MLOpen(Native Method)
>         at com.wolfram.jlink.NativeLink.<init>(Unknown Source)
>         at com.wolfram.jlink.MathLinkFactory.createMathLink0(Unkn=
own Source)
>         at com.wolfram.jlink.MathLinkFactory.createMathLink(Unkno=
wn Source)
>         at com.wolfram.jlink.MathLinkFactory.createKernelLink0(Un=
known
> Source)
>         at com.wolfram.jlink.MathLinkFactory.createKernelLink(Unk=
nown Source)
>         at SampleProgram.main(Unknown Source)
>
> It seems that libJLinkNativeLibrary.jnilib needs to be recompiled for
> Snow Leopard?
>
> Thanks,
>
> Keven

Hi there..

I experienced some problems with snow leopard as well, and found that
changing the java VM from 64 to 32 provided a solution.

Go to Applications --> utilities --> java preferences and change it to
32 bits and see if it works..

Good luck




  • Prev by Date: Re: Mathematica blogs
  • Next by Date: Re: Multi-Colored Filling in DateListPlot
  • Previous by thread: Re: JLink broken on Snow Leopard
  • Next by thread: Re: JLink broken on Snow Leopard