You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by Jim Donahue <jd...@adobe.com> on 2012/12/11 22:46:21 UTC

Problem building on Mac OS

I've got a new Mac and tried to build Mesos, but the build is failing with a compilation error in jvm/jvm.cpp:

                jvm/jvm.cpp:494:  warning: 'JNI_CreateJavaVM' is deprecated (declared at /System/Library/Frameworks/JavaVM.framework/Headers/jni.h:1937)



Thanks,

Jim

Re: Problem building on Mac OS

Posted by Benjamin Mahler <bm...@twitter.com>.
FYI If you're using 10.8 or later, it does not include a non-deprecated jdk.

You will need to install one, and then use the Java Preferences app to drag
it to the top (i.e. set it as the default jdk). Ideally we'll detect this
in configure in the future.

On Tue, Dec 11, 2012 at 1:49 PM, Benjamin Hindman <be...@eecs.berkeley.edu>wrote:

> Are you running 10.6? If so, you'll need to do:
>
> ./configure
>
> JAVA_HOME=/Library/Java/JavaVirtualMachines/1.6.0_22-b04-307.jdk/Contents/Home
>
>
>
> On Tue, Dec 11, 2012 at 1:46 PM, Jim Donahue <jd...@adobe.com> wrote:
>
> > I've got a new Mac and tried to build Mesos, but the build is failing
> with
> > a compilation error in jvm/jvm.cpp:
> >
> >                 jvm/jvm.cpp:494:  warning: 'JNI_CreateJavaVM' is
> > deprecated (declared at
> > /System/Library/Frameworks/JavaVM.framework/Headers/jni.h:1937)
> >
> >
> >
> > Thanks,
> >
> > Jim
> >
>

Re: Problem building on Mac OS

Posted by Benjamin Hindman <be...@eecs.berkeley.edu>.
Are you running 10.6? If so, you'll need to do:

./configure
JAVA_HOME=/Library/Java/JavaVirtualMachines/1.6.0_22-b04-307.jdk/Contents/Home



On Tue, Dec 11, 2012 at 1:46 PM, Jim Donahue <jd...@adobe.com> wrote:

> I've got a new Mac and tried to build Mesos, but the build is failing with
> a compilation error in jvm/jvm.cpp:
>
>                 jvm/jvm.cpp:494:  warning: 'JNI_CreateJavaVM' is
> deprecated (declared at
> /System/Library/Frameworks/JavaVM.framework/Headers/jni.h:1937)
>
>
>
> Thanks,
>
> Jim
>