我刚刚在Windows 10 VMware上安装了MFP CLI 7.1版。 安装了JDK 1.8.0_92,并相应地设置了JAVA_HOME env变量
以下是我在尝试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""开始"" -d"]
mobilefirst-cli verb cli opts = {" debug":true," argv":{" keep":[" start"],& #34;熟":["开始"" - 调试&#34],"原":["开始",& #34; -d"]}}
mobilefirst-cli verb cli mobilefirst@7.1.0.00.20160401-2108
mobilefirst-cli verb cli node@v0.10.36
初始化MobileFirst控制台。
mobilefirst-cli动词ant变量-Dworklight.server.install.dir = C:\ Users \ johan.ibm \ mobilefirst \ 7.1.0.00.20160401-2103 \ server
mobilefirst-cli动词ant变量-Dworklight.port = 10080
mobilefirst-cli动词ant变量-Dbasedir = C:\ Users \ johan \ Documents \ Workspaces \ MobileFirst \ SampleHybridApp mobilefirst-cli动词ant变量-Dworklight.jars.dir = C:\ Program Files \ IBM \ MobileFirst-CLI \ mobilefirst-cli \ node_modules \ generator-worklight-server \ lib
mobilefirst-cli动词ant变量-Dworklight.ant.tools.dir = C:\ Program Files \ IBM \ MobileFirst-CLI \ mobilefirst-cli \ node_modules \ generator-worklight-server \ ant-tools
mobilefirst-cli动词ant变量-Dworklight.hostname = 192.168.1.33
mobilefirst-cli动词ant变量-file = C:\ Program Files \ IBM \ MobileFirst-CLI \ mobilefirst-cli \ node_modules \ generator-worklight-server \ lib \ build.xml
mobilefirst-cli动词ant任务build-WAR
构建文件:C:\ Program Files \ IBM \ MobileFirst-CLI \ mobilefirst-cli \ node_modules \ generator-worklight-server \ lib \ build.xml
建立-WAR:
[echo]为项目SampleHybridApp建立工作灯WAR [war-builder]将5个空目录复制到C:\ Users \ johan \ Documents \ Workspaces \ MobileFirst \ SampleHybridApp \ bin \ classes下的4个空目录中 [war-builder]将2个源文件编译为C:\ Users \ johan \ Documents \ Workspaces \ MobileFirst \ SampleHybridApp \ bin \ classes
错误:build-WAR失败错误:
建筑失败
C:\ Program Files \ IBM \ MobileFirst-CLI \ mobilefirst-cli \ node_modules \ generator-worklight-server \ lib \ build.xml:153:无法编译java类。确保JAVA_HOME指向JDK,并且正确设置了类路径。
总时间:1秒
错误:服务器启动过程失败 mobilefirst-cli动词cli以mobilefirst start结束 mobilefirst-cli动词代码1
其他MFP CLI命令似乎正在运行,因为我能够将WindowsPhone环境添加到我的Hybrid应用程序项目...
有人可以提供一些帮助吗? Windows 10是否支持MFP CLI 7.1?
由于
答案 0 :(得分:1)
在MFP 7.1中,不支持JDK 1.8。请使用JDK 1.7。
运行mfp stop
并尝试创建新的混合应用,以查看问题是否仍在发生。
您还可以删除.war文件并再次启动服务器,它将重建war文件。