Need to update to Java Runtime 62.0 -- not sure how to do it


New Member
Dec 13, 2021
Reaction score
Hello. I've dabbled with Linux in the past, but my MB pro is dying -- started yesterday, in fact -- and it's time to switch. I have experience with the command line in the Terminal app, so most of the commands -- at least the basic ones -- I'm familiar with in Linux.

I 'm running elementary OS, and was able to download and install the Open JDK for Java 17. I'm working on a project as a way of learning Java. I have a folder labeled "Contacts Java Classes", and I know how to get to the folder, etc. There's a file that I want to run which contains the main method to get things going -- "" I can compile the file. Before when I tried to run the file w/o compiling I got this error:

Error: LinkageError occurred while loading main class MainWindow
java.lang.UnsupportedClassVersionError: MainWindow has been compiled by a more recent version of the Java Runtime (class file version 62.0), this version of the Java Runtime only recognizes class file versions up to 61.0

I was able to compile the file, and then I got this error when I entered "java MainWindow":

Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-17-openjdk-amd64/lib/
at java.base/java.lang.ClassLoader.loadLibrary(
at java.base/java.lang.Runtime.load0(
at java.base/java.lang.System.load(
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(
at java.base/jdk.internal.loader.NativeLibraries.findFromPaths(
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(
at java.base/java.lang.ClassLoader.loadLibrary(
at java.base/java.lang.Runtime.loadLibrary0(
at java.base/java.lang.System.loadLibrary(
at java.desktop/java.awt.Toolkit$
at java.desktop/java.awt.Toolkit$
at java.base/
at java.desktop/java.awt.Toolkit.loadLibraries(
at java.desktop/java.awt.Toolkit.initStatic(
at java.desktop/java.awt.Toolkit.<clinit>(
at java.desktop/java.awt.Component.<clinit>(
at MainWindow.<init>(
at MainWindow.main(

Everything works fine on my MB Pro. But even thought I've dabbled before in Linux -- and I just mean dabble, since I always had my OS X -- I'm not sure what's going on.

Should I upgrade to Java 18? And if so, what's the best way to do it? Can anyone help me out? I'v been on other forums, but I'm not sure what I need to sak, and I think I may have gotten under some people's skin. The installing on OS X is easy, but it's more complicated here in Linux, and I'm not sure where to go.

I currently have the open JDK version, but there are versions on Oracle's site (Are they the same thing?). I tried downloading and installing them once last December, but I wasn't sure how to proceed, which versions I needed, and it was somewhat confusing trying to find the answers on the web.

Please offer me any assistance if you can.
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online

Latest posts