Hi all,
I'm very new to SQLcl (just discovered it today, in fact), and while I have it working correctly on my macOS 10.12 and Windows 10 machines, I'm having trouble getting it to work on my production database server, which is running Red Hat Enterprise Linux 5.11 (which from what I can tell, should be supported - though of course I may be wrong).
The error I'm getting is as follows:
$ sql
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
The installed version of Java appears to be:
$ java -version
java version "1.8.0_73"
Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)
Just to be sure a higher version of Java wouldn't fix it, I downloaded and put an installation of Java 8u111 in my home directory, and set my path to find that version first, which it did, but I still got the same "Bad version number" error.
What am I doing wrong here, and is there anything I can do to fix this? Thanks in advance! I'm really looking forward to getting to use the new stuff in SQLcl.