I'm trying to run my gatling project in intelliJ using Java 8. I know that the VM option 'AggressiveOpts' is deprecated in Java 11 and removed in Java 12, but I was wondering why I am getting this error in Java 8?
I have updated my project SDK to be java 8 as well as updating my intelliJ boot runtime to also be Java 8 but this doesn't seem to work.
I have uninstalled Java and IntelliJ and clean installed them both again but that did not resolve the issue.
I have also tried using a different IDE which is VSC (Visual Studio Code) but I get the same errors as I did in intelliJ.
Unrecognized VM option 'AggressiveOpts'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
My current version of Java is 1.8.0_181
My current version of Gatling is 3.3.1
If it helps I am using gradle and the version is 4.8.1
Can anyone help resolve this issue?
Edit: Added build.gradle code
please see the build.gradle here: https://pastebin.com/MigH0Gxz
-XX:
prefix? 2) Are you sure that you are compiling with Java 8? What doesgradle -V
say about it? – Gundry