I recently installed IBM MobileFirst CLI on my Mac, but I don't seem to be able to start the Server. See error below. I searched the internet and found that there is a bug in JDK which causes the JavaLaunchHelper error. I downloaded the beta version that supposedly fixes the issue from here - JDK Download Link . But this doesn't help either. Any other help is appreciated.
Imayas-MBP:EmployeeDirectory imaya$ mfp start Initializing MobileFirst Console. objc[18564]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined. Starting server worklight. Server worklight start failed. Check server logs for details. /Users/imaya/.ibm/mobilefirst/6.3.0/server/wlp/bin/server: line 744: 18563 Abort trap: 6 "${JAVA_CMD}" "$@" > "${JAVA_CMD_LOG}" 2>&1 Error: The MobileFirst server failed to start. The port may be in use by another instance of a running server, or the server may not exist.
The JavaLaunchHelper error is not the problem here; Anyone using Java 7 will experience it, but things will work regardless.
The problem here is the second error:
Verify you do not have an already running server, that was started either by the CLI or by MFP Studio in an Eclipse installation.
mfp stop
Then, start over. Using the CLI, create a new project and application and try to start the server. For example:
On OSX, you can locate and kill a process holding open a port using the following:
Run (assumes port 10080):
$ lsof -i :10080
Then if a process is shown, run the following using the shown Process ID:
$ kill -9 {PID}