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.

1 Comment

  1. martha njeri January 22, 2015 at 10:51 am

    i also would like to go through all that so as to increase my curiosity and to learn
    more and i think your work is great its an inspiration and a motivational tool to me.

Leave a Reply to martha njeri Cancel reply

Your email address will not be published. Required fields are marked *