Spark on Java 17 gives cannot access class sun.nio.ch.DirectBuffer error
I am running spark on java 17. I am now passing the following arguments to my main class after I did some googling on this error. However I still get this error.
Unit tests with Spark 3.4.1 and Java 17 fail even when using VM arguments
I am using using Java 17 (corretto-17) with Gradle (7.3.3) and Scala (2.12.17), when running unit tests that uses Spark (3.4.1) it fails with: