Error: LinkageError occurred while loading main class [message #1826170] |
Mon, 20 April 2020 11:22  |
Eclipse User |
|
|
|
Developing a desktop app for Windows and Linux. Installed JDK14 on Windows and then found nightmare trying to install that on Linux. Linux supported version is JDK11.
So, found installer for JDK11 for Windows. Eclipse Already installed and project built in JDK14 on Windows. So. Eclipse won't run after "downgrade".
So, Eclipse not in Windows list of installed programs.
So run Eclipse installer for again.
After a lot of fiddling, Eclipse is running. So add Window Builder again.
So, begin fixing up project settings for JDK11 rather than 14. Mostly this is working
BUT
Closed Eclipse and then it won't run again. Says there is no JDK14? Huh? I just did reinstall. So FREAKING Manually Edit the Eclipse.ini file and find reference to JDK14 as the VM for the whole freaking thing? Huh? Installer did not fix that. And how did it ever run. JDK14 is GONE from system. So Manually Edit the Eclipse.ini file to point to JDK 11.
At this point I have considered Wiping the system disk and starting over, but seriously. Shouldn't the Installer rewrite the INI file? Ok so
I'm still getting this when I try to run the program:
Error: LinkageError occurred while loading main class com.ww.appcode.ShowRunnerEvents
java.lang.UnsupportedClassVersionError: com/ww/appcode/ShowRunnerEvents 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 55.0
Project settings - all things I can find have been set to JDK11.
So, Project Clean FAIL
Uncheck Build Automatically
Build All
Delete .class files manually from the offending package
Clean All
Build All
And still these same errors
So What's the answer so I can get back to work.
BTW, this is the whole reason that I'm doing this. JDK14 yada yada yada JDK11 as above is the reason that I needed to downgrade Windows install from JDK14 to JDK11 since Linux supports JDK11 not JDK14.
And Yes, I tried to install JDK14 on Linux and that failed so badly that I had to completely rebuild the Linux VM system from scratch - build a brand new one from a brand new VDI hard drive. Yep Hosed that badly.
So long and whining story later.
Please, how can I fix this error. Even manually deleting the class files does not help.
Thanks.
[Updated on: Mon, 20 April 2020 11:25] by Moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05928 seconds