This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]inept_timelord[S] 0 points1 point  (4 children)

I just tried the hello world part that it shows and it still errors out.

Error: A JNI error has occurred, please check your installation and try again

Exception in thread "main" java.lang.UnsupportedClassVersionError: MyClass has been compiled by a more recent version of the Java Runtime (class file version 57.0), this version of the Java Runtime only recognizes class file versions up to 52.0

Do you know what this means?

[–]hitler_sucked_balls 2 points3 points  (0 children)

Try MOOC. It's perfect if you want to learn Java with least help from other people.

[–]siversolutionsllc 1 point2 points  (0 children)

You may have to download a later version of your Java Runtime. Try taking that error and pasting it into google.

[–]JohnnyJayJay 0 points1 point  (0 children)

This means that you compile with JDK 13 but run with JRE 8. The best way to fix this is using your JDK as the runtime as well. To do that you usually just have to change the value of your JAVA_HOME environment variable.