Please disregard this subject. I think I was able to fix the problem.

As suggested in Dockerfile I ran ./configure with --disable-java flag.
Removing it and reinstalling everything fixed the link error.

Thanks,
Andrii

On Thu, Feb 18, 2016 at 8:11 AM, Andrii Biletskyi <
[email protected]> wrote:

> Yes, it is set exactly as you pointed out  - /usr/local/lib/libmesos.so
>
> Just in case adding jre info:
>
> vagrant@master:/vagrant$ echo $JAVA_HOME
> /usr/lib/jvm/java-7-openjdk-amd64/jre
>
> vagrant@master:/vagrant$ java -version
> java version "1.7.0_95"
> OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-0ubuntu0.14.04.1)
> OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
>
> Thanks,
> Andrii
>
> On Thu, Feb 18, 2016 at 2:46 AM, haosdent <[email protected]> wrote:
>
>> Hi, do you try to
>> set MESOS_NATIVE_JAVA_LIBRARY=/usr/local/lib/libmesos.so ?
>>
>> On Thu, Feb 18, 2016 at 6:34 AM, Andrii Biletskyi <
>> [email protected]> wrote:
>>
>>> Hi all,
>>>
>>> I'm trying to test new networking module. In order to do that I built
>>> mesos from tag 0.27.0
>>> with unbundled dependencies as suggested. I pretty much followed this
>>> Dockerfile
>>>
>>> https://github.com/mesosphere/docker-containers/blob/master/mesos-modules-dev/Dockerfile
>>> .
>>> I'm doing all the steps on a new vagrant ubuntu machine with nothing
>>> preinstalled.
>>>
>>> As far as I can tell mesos was built successfully - I didn't receive
>>> erros, libmesos.so was created
>>> under /usr/local/lib. I have specified MESOS_NATIVE_JAVA_LIBRARY
>>> accordingly. But when I
>>> start my java scheduler I see this error:
>>> Exception in thread "main" java.lang.UnsatisfiedLinkError:
>>> org.apache.mesos.MesosSchedulerDriver.initialize()V
>>> at org.apache.mesos.MesosSchedulerDriver.initialize(Native Method)
>>>
>>> Is it a mesos build problem or some missing configuration?
>>>
>>> Thanks,
>>> Andrii Biletskyi
>>>
>>
>>
>>
>> --
>> Best Regards,
>> Haosdent Huang
>>
>
>

Reply via email to