I have created a java adapter but it building it fails while building javascript adapters works.
This is my setup:
- java version "1.7.0_101"
- OpenJDK Runtime Environment (IcedTea 2.6.6) (7u101-2.6.6-0ubuntu0.14.04.1)
- OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
- JAVA_HOME is /usr/lib/jvm/java-7-openjdk-amd64
- OS: linux x64
I have already tried 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.