IBM Mainframe Forum Index
Log In
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register

building java class with zip4j.jar on USS

IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message

Active User

Joined: 31 Oct 2006
Posts: 131
Location: brisbane

PostPosted: Thu Jun 08, 2023 9:18 am
Reply with quote

I'm trying to build a sample application to test the zip4j library.

I've copied the .jar and .class files to my USS directory with the correct -B (binary) option. When I attempt to run in JVM with :
java -cp .:zip4j-2.11.5.jar ZipWithPasswordExample

i get the following error :
UnsupportedClassVersionError: JVMCFRE199E bad major version 64.0 ... the maximum supported major version is 52.0; offset=6

I suspect this is because zip4j.jar was built with a later version of java than what I have on my site, which is :
  java -version

  java version "1.8.0_341"                                                       
  Java(TM) SE Runtime Environment (build - pmz6480sr7fp16- 20220830_01(SR7 FP16))                                                                         
  IBM J9 VM (build 2.9, JRE 1.8.0 z/OS s390x-64-Bit Compressed References
  20220817_34480 (JIT enabled, AOT enabled)                                               
  OpenJ9   - 55f250a                                                             
  OMR      - f0ddca6                                                             
  IBM      - bf759bf)                                                             
  JCL - 20220727_01 based on Oracle jdk8u341-b10

has anyone got an earlier build of zip4j.jar ? or, is there an easy way to build this without downloading an earlier version of the java sdk (onto my windows PC)?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Java & MQSeries


Similar Topics
Topic Forum Replies
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Using Java/C/C++ to retrieve dataset ... Java & MQSeries 6
No new posts Assembler class assignment: stuck on ... PL/I & Assembler 12
No new posts Java and mainframe. General Talk & Fun Stuff 0
No new posts CICS / JAVA - Setup of definitions CICS 0
Search our Forums:

Back to Top