Posted: Thu Nov 05, 2020 10:55 pm Post subject: mqsicreatebar with Java 1.8
Newbie
Joined: 05 Nov 2020 Posts: 2
Hi IIB experts ,
I am trying to create bar file using mqsicreate bar with toolkit version 10.0.0.6.
I have application that refers to shared library which has subflow which in turn refers to a JAVA project. Subflow (SHARED_LIB1) has certain java function calls which are defined in Java project(JAVA_REF). Java project works only with JDK /JRE 1.8.
I am able compile and build bar file using toolkit however, when I try to build with mqsicreatebar it fails with below error .
mqsicreatebar" -cleanBuild -deployAsSource -data . -b ./target/MyApplication.bar -a MyApplication -l SHARED_LIB1
Problem markers list from the workspace:
Problem 0: Resource - /JAVA_REF; Error message - The project was not bu
ilt since its build path is incomplete. Cannot find the class file for java.lang
.Object. Fix the build path then try building this project.
Problem 1: Resource - /JAVA_REF/src/my/java/package/Encryption
.java; Error message - The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files.
My JAVA_HOME and JRE_HOME is pointing to JDK and JRE 1.8 respectively
Looks like I am missing something very fundamental .. but not able figure it out
IIB toolkit version 10.0.0.6 default JDK version is 1.7. When I run mqsicreatebar with Java project dependent on JDK 1.7 .. it works fine. However when I add Java 1.8 runtime, mqsicreatebar is failing .
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum