Re: JLink broken on Snow Leopard
- To: mathgroup at smc.vnet.net
- Subject: [mg104193] Re: JLink broken on Snow Leopard
- From: keven <kevenlin at gmail.com>
- Date: Thu, 22 Oct 2009 22:33:51 -0400 (EDT)
- References: <firstname.lastname@example.org> <email@example.com>
On Oct 21, 11:28 pm, fd <fdi... at gmail.com> wrote: > 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(Un= kn= > own Source) > > at com.wolfram.jlink.MathLinkFactory.createMathLink(Unk= no= > wn Source) > > at com.wolfram.jlink.MathLinkFactory.createKernelLink0(= Un= > known > > Source) > > at com.wolfram.jlink.MathLinkFactory.createKernelLink(U= nk= > 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 It seemed that the problem was JLink could not find 64-bit version of libJLinkNativeLibrary.jnilib. The problem was solve by running the app using 32-bit JVM.