We are trying to run a Gatling performance test that uses some modules written in Java 11. However, when we run it, we are getting the following errors in bzt.log:
[ERROR] i.g.a.Gatling$ - Run crashed java.lang.UnsupportedClassVersionError: com/ncr/transaction/api/transactions/IdentifierType has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
[DEBUG root] Executing shell: ['java', '-version'] at . [DEBUG Engine.gatling.JavaVM] JavaVM output: openjdk version "1.8.0_292" OpenJDK Runtime Environment (build 1.8.0_292-8u292-b10-0ubuntu1~20.04-b10) OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)
Does Blazemeter support Java 11? If yes, then how can we enable it. If no, then is there any workaround?
Component : BLAZEMETER PERFORMANCE TESTING
We do support Java 11. However, by default, we use Java 8 for Gatling, so an enhancement request is needed to provide an option for you to select the version of Java you would like to use with Gatling.
See https://guide.blazemeter.com/hc/en-us/articles/115005740049-Submitting-Feature-Requests-Ideas- for instructions on submitting the enhancement request.
For now, you will need to use Java 8 for your test.