I'm trying out Bash on Ubuntu on Windows. I have a simple program:
`class Hello
{
public static void main(String[] args) {
System.out.println("Hello World!");
}
}`
I have Java version 8u102 on Windows and 7u111 on the Windows Subsystem for Linux. The program compiles and runs fine on Windows. The program compiles on the Subsystem but when I try to run it, I get this error:
Exception in thread "main" java.lang.unsupportedClassVersionError: Hello: unsupported major.minor version 52.0
How do I get Java programs to run on the Windows Subsystem for Linux?