That's great to hear. We're looking forward to using JZOS from maven central.
Thanks James.
Original Message:
Sent: Tue December 12, 2023 01:01 PM
From: James Tang
Subject: JZOS from maven-central cannot be used with Java8
The team has been looking into a v8 of JZOS jar to Maven. This is being considered in prioritization backlog.
To help with this prioritization, please open a RFE here - https://ibm-z-software-portal.ideas.ibm.com/?project=JSDK4Z
------------------------------
James Tang
Original Message:
Sent: Fri November 17, 2023 12:27 PM
From: Roded Bahat
Subject: JZOS from maven-central cannot be used with Java8
That's very disappointing Kevin.
Using a different build tool is definitely not an option. And I'm not sure what you mean by "manual importing". We would like to be able to compile against JZOS just like any other jar avaliable in maven central.
This isn't really a matter of officially supporting Gradle vs Maven, but rather, just providing a JZOS jar which has been compiled using Java 8.
Can't IBM provide a JZOS jar which has been compiled with Java 8? This could even be an older version of JZOS if the current version requires Java 11 language features.
Thanks.
------------------------------
Roded Bahat
Original Message:
Sent: Fri November 17, 2023 10:28 AM
From: Min Su Cho
Subject: JZOS from maven-central cannot be used with Java8
Thank you Roded Bahat for posting the error message.
I have gone through the Gradle build from my end and other build tools. We don't officially support Gradle and only encourage using Maven and manual importing at the moment. What I can suggest for now is to use other build tools.
Please let me know if the issue persists even after you change the build tool.
Thank you
Kevin
------------------------------
Min Su Cho
Original Message:
Sent: Sat November 11, 2023 11:22 AM
From: Roded Bahat
Subject: JZOS from maven-central cannot be used with Java8
Thanks for the reply Min Su Cho.
We're using Gradle to compile a project which uses a Java 8 toolchain and which has JZOS as a compileOnly dependency the following error is reported:
import com.ibm.jzos.ZFile;
^
bad class file: /Users/rbahat/.gradle/caches/modules-2/files-2.1/com.ibm.jzos/ibm.jzos/3.1.3.1/93747a6959750874af749886c1cb5e0b38eb4059/ibm.jzos-3.1.3.1.jar(com/ibm/jzos/ZFile.class)
class file has wrong version 55.0, should be 52.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
This is a error coming from Java8's javac.
And it does seem like the JZOS classes have been compiled with 55.
Please advise.
Thanks
------------------------------
Roded Bahat
Original Message:
Sent: Fri November 10, 2023 03:09 PM
From: Min Su Cho
Subject: JZOS from maven-central cannot be used with Java8
Hi, Roded Bahat.
Thank you for reaching out to us for JZOS inquiries.
If you will use the JZOS jar for compilation purposes, the JZOS from maven-central would also work fine with Java 8. We tested to validate if it works from Java 8 with the dummy jar file. Let us know if you encounter any error messages when you use Java 8 with the JZOS from maven-central.
Thank you.
Kevin
------------------------------
Min Su Cho
Original Message:
Sent: Fri November 10, 2023 01:24 AM
From: Roded Bahat
Subject: JZOS from maven-central cannot be used with Java8
Hi,
Hopefully this is the right forum for such a question.
We're trying to use JZOS from maven-central (https://mvnrepository.com/artifact/com.ibm.jzos/ibm.jzos) for compilation purposes.
The jar seems to have been compiled using Java 11 which prevents us from using it in Java 8 applications.
Can a Java 8 compiled jar be published as well?
Thanks,
Roded
------------------------------
Roded Bahat
------------------------------