I want to run test for a legacy environment that uses jdk.1.4. If I do
test {
executable = “C:\Program Files (x86)\j2sdk1.4.2_01\bin\java.exe”; }
and “gradle test” then I get
Running tests with C:\Program Files (x86)\j2sdk1.4.2_01\bin\java.exe java.lang.UnsupportedClassVersionError: org/gradle/process/internal/launcher/GradleWorkerMain (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
Is there a workaround for this?
Thanks