Compilation errors in jazz build
Hi
When I request a build in JKE banking sample application,it is showing build is successful and showing some compilation errors,details follows here.Can you help me to resolve this issue.
1. ERROR in /opt/IBM/JazzTeamServer/server/jazz/buildsystem/buildengine/eclipse/JKEBuild/I20151130-0421/JKEBusinessData/src/com/jke/beans/AccountBean.java (at line 112)
[javac] accountObj.put("accountNumber", new Long(getAccountNumber()));
[javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[javac] The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
[javac] ----------
[javac] ----------
[javac] 2. ERROR in /opt/IBM/JazzTeamServer/server/jazz/buildsystem/buildengine/eclipse/JKEBuild/I20151130-0421/JKEJavaUI/src/com/jke/ui/SimpleHttpClient.java (at line 54)
[javac] sb.append(line);
[javac] ^^^^^^^^^^^^^^^
[javac] The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files
Accepted answer
I had this same error. Turns out it was because the Jazz Build Engine was starting up with the "-vm" option pointing to a JDK of version 1.8. Only 1.7 is supported with RTC v6.0.1. Double check your JDK version being used by your JBE.
Comments
The JDK is very sensitive to the SDK. Also see https://rsjazz.wordpress.com/2015/04/07/the-day-the-jbe-stood-still/ and please note there is now a 32 and 64 bit version available for certain architectures.