【发布时间】:2015-08-16 09:21:41
【问题描述】:
所以我正在尝试将 Xamarin 与 MobileFirst Platform 集成,我正在执行以下步骤: http://www.ibm.com/developerworks/library/mo-develop-a-xamarin-forms-app-for-ibm-mobilefirst/index.html
我已经将 IBM MobileFirst SDK 添加到我的项目中,并将加载项添加到 xamarin studio,这样它应该可以毫无问题地启动服务器,但是当我转到工具 -> 启动服务器时没有任何反应。
CLI 和 Java 设置在正确的位置,所以我看不出我做错了什么。
- 我使用的是 Xamarin Studio 5.9 版,SDK 和插件在 7.0.0.1 版中,CLI 在 7.0.0 版中。
还有另一种将 mobilefirst 服务器与 xamarin 集成的方法吗?或者对正在发生的事情有什么想法?
这是我得到的错误:
ERROR [2015-06-02 16:05:40Z]: Error while executing command: Start Server
System.ArgumentException: Item has already been added. Key in dictionary: 'JAVA_HOME' Key being added: 'JAVA_HOME'
at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
at System.Collections.Hashtable.Add(Object key, Object value)
at System.Collections.Specialized.StringDictionaryWithComparer.Add(String key, String value)
at IBMWorklight.WLCommandExecuter.executeWLCommand(String wlCommand, String executionFolder)
at IBMWorklight.WLCommandExecuter.init()
at IBMWorklight.StartServerHandler.Run()
at MonoDevelop.Components.Commands.CommandHandler.Run(Object dataItem)
at MonoDevelop.Components.Commands.CommandHandler.InternalRun(Object dataItem)
at MonoDevelop.Components.Commands.CommandManager.DefaultDispatchCommand(ActionCommand cmd, CommandInfo info, Object dataItem, Object target, CommandSource source)
at MonoDevelop.Components.Commands.CommandManager.DispatchCommand(Object commandId, Object dataItem, Object initialTarget, CommandSource source)
谢谢。
【问题讨论】:
-
为了帮助缩小问题范围,您遇到的确切错误是什么?
-
我没有收到任何错误信息
-
菜单中版本选项的输出是什么?
-
如果我进入菜单中的版本选项,什么也没有发生,但我用我得到的错误日志编辑我的问题。
标签: xamarin ibm-mobilefirst mobilefirst-server mobilefirst-cli