jsvc 로 데몬을 띄울려고 했는데 맥에서 아래와 같은 에러가 나온다.


Cannot find any VM in Java Home /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home

Cannot locate JVM library file


해결

http://www.thomaskioko.com/hacks/cannot-find-any-vm-in-java-home-mac/

This is going to be a short one. so let’s get to it.

Today was one of those days you go past page 5 searching for an answer in Google. Hopefully you will not have to go through the same process I did to get a fix.

I have been working with daemons and i hit a snag. The VM/JVM not found snag.

I got the following error when running the daemon: “Cannot find any VM in Java Home /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home
Cannot locate JVM library file”

After scrolling through the web I finally got a fix.

Solution:

Open terminal and type the following commands:

NB: Replace jdk1.7.0_71.jdk with your jdk version.

$ cd /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents
$ sudo ln -s Home/jre/lib Libraries
$ cd Libraries
$ sudo ln -s server/libjvm.dylib libserver.dylib

That’s it. Problem solved :-)

Let me get back to what I love doing, saving the world.

+ Recent posts