有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

无法构建IBM MobileFirst Platform 7.0 java适配器

我已经创建了一个java适配器,但它在构建javascript适配器时失败

这是我的设置:

  • java版本“1.7.0_101”
  • OpenJDK运行时环境(IcedTea 2.6.6)(7u101-2.6.6-0ubuntu0.14.04.1)
  • OpenJDK 64位服务器虚拟机(构建24.95-b01,混合模式)
  • JAVA_HOME是/usr/lib/jvm/JAVA-7-openjdk-amd64
  • 操作系统:linux x64

我已经试过了

[Error: 
BUILD FAILED
/opt/ibm/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib/build.xml:206: Build of the adapter 'xxxxxx' failed. The failure message is: 'Compile failed; see the compiler error output for details.'. The failure may have been caused due to incorrect Java code, incompatible JDK level, JAVA_HOME not pointing to the location of a valid JDK or missing dependencies. Note that the worklight-jee-library.jar must be in the classpath when building Java adapters.
]
Error: Sorry an error has occurred. Please check the stack above for details.

共 (1) 个答案

  1. # 1 楼答案

    错误消息指定了以下可能的问题:

    1. 代码问题
    2. Java路径问题

    因此,如果我们怀疑我们把Java放在了正确的位置,并且我们使用的是正确的Java版本,那么我建议查看您的Java代码

    创建一个新的Java适配器,不做任何更改,而只是简单地创建并构建它。看看它是否通过了构建步骤。如果是这样,那么您需要回到现有的Java适配器,看看它为什么会失败——可能是因为第一个选项——一些代码问题