0
votes

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

Environment variables

1
1. Provide your JAVA_HOME and your PATH to make sure JAVA_HOME is really there; 2. try with Java 1.7 - Idan Adar
@DoraC No it did not - Johan Mereaux
@IdanAdar I downgraded to Java7 and updated the env variables (please see the screenshot above). Still the same issue - Johan Mereaux
Can you try mfp stop, create a new hybrid app, and see if the issue still occurs? - DoraC
@DoraC I did as you advised. When run inside the new hybrid app folder, mfp start completes successfully. Any idea on what is wrong with the first app? Thanks - Johan Mereaux

1 Answers

1
votes

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.