Search code examples
ibm-mobilefirstmobilefirst-cli

MFP CLI 7.1 and El Capitan


So i upgraded to El Capitan, this version of OSX no longer ships with jdk 1.6.0 in the in the /System/Library/Java/JavaVirtualMachines folder, and installs new java versions in /Library/java/JavaVirtualMachines

I get this error when I try to mfp status

/Users/hannade/.ibm/mobilefirst/7.1.0.00.20151130-1648/server/wlp/bin/server: line 777: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java: No such file or directory

Solution

  • What is set as your JAVA_HOME environment variable? Run echo $JAVA_HOME in Terminal to verify. Make sure it is set to the Java version that you have installed.

    You can probably set it either in ~/.bash_profile or by using a tool such as EnvPne.