Najeeb P
Najeeb P

Reputation: 81

Unable to build IBM MobileFirst Platform 7.0 java adapter

I have created a java adapter but it building it fails while building javascript adapters works.

This is my setup:

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.

Upvotes: 1

Views: 186

Answers (1)

Idan Adar
Idan Adar

Reputation: 44526

The error message specifies the following possible problems:

  1. Code problem
  2. Java path problem

So, if we suspect that we've placed the Java in the right place and that we're using the correct Java version, then I suggest to look at your Java code.

Create a new Java adapter and make no changes in it, rather simply and only create it and build it. See if it passes the build step. If it does, then you need to go back to your existing Java adapter and see why it fails - possibly due to the first option - some code problem.

Upvotes: 1

Related Questions