我已經創建了一個Java適配器,但構建它的JavaScript適配器工作時構建它失敗。無法構建IBM MobileFirst Platform 7.0 Java適配器
這是我的設置:
- Java版本 「1.7.0_101」
- OpenJDK的運行時環境(IcedTea項目2.6.6)(7u101-2.6.6-0ubuntu0.14.04.1)
- OpenJDK的64位服務器VM(建立24.95-B01,混合模式)
- JAVA_HOME是/ usr/lib中/ JVM/JAVA -7-的openjdk-AMD64
- 操作系統:Linux 64
我已經試過this workaround。
[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.
爲什麼要使用OpenJdk?嘗試使用Oracle Java。 –
@IdanAdar:感謝您的幫助,我已經嘗試了使用Oracle java(JAVA_HOME =/usr/lib/jvm/java-7-oracle),但遇到同樣的問題 –
您在哪裏構建適配器?使用CLI還是Studio? –