Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

JLink problem, Mathematica 6, OSX, Java SE 6 (64 bit).

442 views
Skip to first unread message

Scott Morrison

unread,
Feb 10, 2009, 5:54:01 AM2/10/09
to
I'm having a problem with JLink in Mathematica 6, on OSX 10.5, with Java SE 6
(64 bit). In particular, I get error messages

LinkConnect::linkc:
Unable to connect to LinkObject['/Applications/Mathema<<92>>/
m0000011741",
<<2>>].
InstallJava::fail: A link to the Java runtime could not be
established.

when first loading JLink, and later running InstallJava[] results in

LinkOpen::linke: Error 19
InstallJava::launch: The Java runtime could not be launched.

Going to Java preferences, I can switch back to J2SE 5.0 (32 bit) (but
not 64 bit), after which the problems go away. For performance
reasons, I'd really prefer to be able to use a 64 bit runtime. Does
anyone know of a fix for this problem?

I don't have the same problem with Mathematica 7, but for now I'm having some
mysterious problems in Mathematia 7 (my existing packages randomly hang...?)
that I'd like to be able to switch back for a while.

thanks,
Scott Morrison

Scott Morrison

unread,
Mar 6, 2009, 4:14:03 AM3/6/09
to
Hello, Wolfram? Anyone? I've discovered this is also a problem with
Mathematica 7; it just ignores my OS X Java preferences, and runs its
own JVM, unless you specify the CommandLine option in ReinstallJava.

Could someone at least confirm for me that it's impossible to use Java
SE6 through JLink?

thanks,
Scott Morrison

On Feb 10, 2:54 am, Scott Morrison <scott.morri...@gmail.com> wrote:
> I'm having a problem withJLinkin Mathematica 6, on OSX 10.5, with JavaSE6


> (64 bit). In particular, I get error messages
>
> LinkConnect::linkc:
> Unable to connect to LinkObject['/Applications/Mathema<<92>>/
> m0000011741",
> <<2>>].
> InstallJava::fail: A link to the Java runtime could not be
> established.
>

> when first loadingJLink, and later running InstallJava[] results in


>
> LinkOpen::linke: Error 19
> InstallJava::launch: The Java runtime could not be launched.
>
> Going to Java preferences, I can switch back to J2SE 5.0 (32 bit) (but
> not 64 bit), after which the problems go away. For performance
> reasons, I'd really prefer to be able to use a 64 bit runtime. Does
> anyone know of a fix for this problem?
>

> I don't have the same problem with Mathematica 7, but for now I'm having =
some
> mysterious problems in Mathematia 7 (my existing packages randomly hang..=

cosmotic

unread,
Mar 6, 2009, 5:38:42 AM3/6/09
to
On Feb 10, 5:54 am, Scott Morrison <scott.morri...@gmail.com> wrote:
> I'm having a problem with JLink in Mathematica 6, on OSX 10.5, with Java =

SE 6
> (64 bit). In particular, I get error messages
>
> LinkConnect::linkc:
> Unable to connect to LinkObject['/Applications/Mathema<<92>>/
> m0000011741",
> <<2>>].
> InstallJava::fail: A link to the Java runtime could not be
> established.
>
> when first loading JLink, and later running InstallJava[] results in
>
> LinkOpen::linke: Error 19
> InstallJava::launch: The Java runtime could not be launched.
>
> Going to Java preferences, I can switch back to J2SE 5.0 (32 bit) (but
> not 64 bit), after which the problems go away. For performance
> reasons, I'd really prefer to be able to use a 64 bit runtime. Does
> anyone know of a fix for this problem?
>
> I don't have the same problem with Mathematica 7, but for now I'm having =
some
> mysterious problems in Mathematia 7 (my existing packages randomly hang..=

.?)
> that I'd like to be able to switch back for a while.
>
> thanks,
> Scott Morrison

Open the Info.plist in Mathematica.app/SystemFiles/Links/JLink/
JLink.app. Edit the Root/Java/JVMVersion, I changed mine to '1.5'. I
can keep the system at Java6 64bit and Mathematica still works using
the old version.

Looks like 6.0.3 might fix the problem with Java6.

Scott Morrison

unread,
Mar 10, 2009, 6:34:49 AM3/10/09
to

> Open the Info.plist in Mathematica.app/SystemFiles/Links/JLink/JLink.app. Edit the Root/Java/JVMVersion, I changed mine to '1.5'. I

> can keep the system at Java6 64bit and Mathematica still works using
> the old version.

Hmm -- but the point is that I want Mathematica to use Java6! In
particular, I'd like to be able to profile my Java program while it's
being called from Mathematica.

scott

Scott Morrison

unread,
Mar 10, 2009, 6:35:52 AM3/10/09
to
I've just been told by someone at Wolfram that as of version 7.0.1,
java6 on OS X works.

On Mar 6, 3:38 am, cosmotic <cosmo...@gmail.com> wrote:
> On Feb 10, 5:54 am,ScottMorrison<scott.morri...@gmail.com> wrote:
>
>
>
> > I'm having a problem with JLink in Mathematica 6, on OSX 10.5, with Jav=


a =
> SE 6
> > (64 bit). In particular, I get error messages
>
> > LinkConnect::linkc:
> > Unable to connect to LinkObject['/Applications/Mathema<<92>>/
> > m0000011741",
> > <<2>>].
> > InstallJava::fail: A link to the Java runtime could not be
> > established.
>
> > when first loading JLink, and later running InstallJava[] results in
>
> > LinkOpen::linke: Error 19
> > InstallJava::launch: The Java runtime could not be launched.
>
> > Going to Java preferences, I can switch back to J2SE 5.0 (32 bit) (but
> > not 64 bit), after which the problems go away. For performance
> > reasons, I'd really prefer to be able to use a 64 bit runtime. Does
> > anyone know of a fix for this problem?
>

> > I don't have the same problem with Mathematica 7, but for now I'm havin=
g =
> some
> > mysterious problems in Mathematia 7 (my existing packages randomly hang=

0 new messages