1.2. Supported Java Versions1.2. Supported Java VersionsJUnit 5 requires Java 8 (or higher) at runtime. However, you can still test code that has been compiled with previous versions of the JDK.