Reputation: 141
I've just installed the version 7.1 of the MFP CLI on a Windows 10 VMware. JDK 1.8.0_92 is installed, and the JAVA_HOME env variable has been setup accordingly
Below is the error I get when trying the mfp start:
C:\Users\johan\Documents\Workspaces\MobileFirst\SampleHybridApp>mfp start -d
mobilefirst-cli verb cli process.argv=["C:\Program Files\IBM\MobileFirst-CLI\\IBMnode\node.exe","C:\Program Files\IBM\MobileFirst-CLI\mobilefirst-cli\bin\mobilefirst-cli.js","start","-d"]
mobilefirst-cli verb cli opts={"debug":true,"argv":{"remain":["start"],"cooked":["start","--debug"],"original":["start","-d"]}}
mobilefirst-cli verb cli [email protected]
mobilefirst-cli verb cli [email protected]
Initializing MobileFirst Console.
mobilefirst-cli verb ant variables -Dworklight.server.install.dir=C:\Users\johan.ibm\mobilefirst\7.1.0.00.20160401-2103\server
mobilefirst-cli verb ant variables -Dworklight.port=10080
mobilefirst-cli verb ant variables -Dbasedir=C:\Users\johan\Documents\Workspaces\MobileFirst\SampleHybridApp mobilefirst-cli verb ant variables -Dworklight.jars.dir=C:\Program Files\IBM\MobileFirst-CLI\mobilefirst-cli\node_modules\generator-worklight-server\lib
mobilefirst-cli verb ant variables -Dworklight.ant.tools.dir=C:\Program Files\IBM\MobileFirst-CLI\mobilefirst-cli\node_modules\generator-worklight-server\ant-tools
mobilefirst-cli verb ant variables -Dworklight.hostname=192.168.1.33
mobilefirst-cli verb ant variables -file=C:\Program Files\IBM\MobileFirst-CLI\mobilefirst-cli\node_modules\generator-worklight-server\lib\build.xml
mobilefirst-cli verb ant task build-WAR
Buildfile: C:\Program Files\IBM\MobileFirst-CLI\mobilefirst-cli\node_modules\generator-worklight-server\lib\build.xml
build-WAR:
[echo] Building worklight WAR for project SampleHybridApp
[war-builder] Copied 5 empty directories to 4 empty directories under C:\Users\johan\Documents\Workspaces\MobileFirst\SampleHybridApp\bin\classes
[war-builder] Compiling 2 source files to C:\Users\johan\Documents\Workspaces\MobileFirst\SampleHybridApp\bin\classes
Error: build-WAR Failed Error:
BUILD FAILED
C:\Program Files\IBM\MobileFirst-CLI\mobilefirst-cli\node_modules\generator-worklight-server\lib\build.xml:153: Could not compile java classes. Make sure JAVA_HOME points to the JDK, and the classpath is correctly set.
Total time: 1 second
Error: The server start-up process failed.
mobilefirst-cli verb cli finish with mobilefirst start
mobilefirst-cli verb code 1
Other MFP CLI command seems to be working since I was able to add a WindowsPhone environment to my Hybrid app project...
Could someone please provide some help? Is the MFP CLI 7.1 supported on Windows 10?
Thanks
Upvotes: 0
Views: 285
Reputation: 332
In MFP 7.1, JDK 1.8 is not supported. Please use JDK 1.7.
Run mfp stop
and try creating a new hybrid app to see if the issue is still occurring.
You can also remove the .war file and start the server again and it will rebuild the war file.
Upvotes: 1