I have a git project with some javascript files that I run through closure compiler before distributing. I am trying to get closure going on the pages build script but it appears that java is too old. I might be able to use an older version but I would rather not. Any other ideas? Could there be multiple java versions installed? Is the build OS/packages documented somewhere?
21:14:05.518 Error: A JNI error has occurred, please check your installation and try again
21:14:05.520 Exception in thread "main" java.lang.UnsupportedClassVersionError: com/google/javascript/jscomp/CommandLineRunner 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
21:14:05.520 at java.lang.ClassLoader.defineClass1(Native Method)
21:14:05.520 at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
21:14:05.520 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
21:14:05.520 at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
21:14:05.520 at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
21:14:05.521 at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
21:14:05.521 at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
21:14:05.521 at java.security.AccessController.doPrivileged(Native Method)
21:14:05.521 at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
21:14:05.521 at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
21:14:05.521 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
21:14:05.521 at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
21:14:05.521 at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)
21:14:05.531 Failed: build command exited with code: 1
21:14:06.568 Failed: an internal error occurred
Update: I did find a list of installed packages
It only has java 8 support so im still looking for a solution