Linux: installation problems: "java.lang.NoSuchMethodError: org.jdesktop.swingx.util.OS.platformName"

avrew

Registered
Thread Starter
Joined
Aug 4, 2020
Messages
9
Hi everyone. Hoping for some help from the more experienced here!
After upgrading my Linux box (Fedora 32), i'm not able to run REW (5_20_beta_60) successfully. After installation and upon launching, i get this error:
Code:
SEVERE: Error during startup java.lang.NoSuchMethodError: org.jdesktop.swingx.util.OS.platformName(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

Unfortunately i'm a total noob to java. Searching around i couldn't find any refs to any 'platformName' method related to swingx.

But expecting this has something to do with my (new) java installation, as the previous one (Fedora 31, july this year) worked great with REW.

Any suggestions for things to check?

Thanks in advance!
 

avrew

Registered
Thread Starter
Joined
Aug 4, 2020
Messages
9
Hi. Thanks for replying.

I did try that - "sudo dnf reinstall java-1.8.0-openjdk" - without luck.

Perhaps there's some java .jar which needs to be installed separately?

Here's the full traceback:

Code:
$ ./roomeqwizard
OpenGL pipeline enabled for default config on screen 0
OpenGL pipeline enabled for default config on screen 1
sep 11, 2020 12:40:43 PM roomeqwizard.RoomEQ_Wizard A
SEVERE: Error during startup java.lang.NoSuchMethodError: org.jdesktop.swingx.util.OS.platformName(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
java.lang.NoSuchMethodError: org.jdesktop.swingx.util.OS.platformName(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
        at roomeqwizard.RoomEQ_Wizard.O(y:2542)
        at roomeqwizard.RoomEQ_Wizard.main(y:1073)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84)
        at com.install4j.runtime.launcher.UnixLauncher.start(UnixLauncher.java:66)
        at install4j.roomeqwizard.RoomEQ_Wizard.main(Unknown Source)
 

John Mulcahy

REW Author
Joined
Apr 3, 2017
Messages
7,212
The OS platformName method is part of the code included in REW, REW only requires a Java 8 runtime. The runtime must not be headless, though if it was REW should still start but would have no audio I/O.
 

avrew

Registered
Thread Starter
Joined
Aug 4, 2020
Messages
9
Is there a way to check whether my java installation is compatible with REW?

Here's the output of "java -version":
Code:
$ java -version
openjdk version "1.8.0_265"
OpenJDK Runtime Environment (build 1.8.0_265-b01)
OpenJDK 64-Bit Server VM (build 25.265-b01, mixed mode)
 

avrew

Registered
Thread Starter
Joined
Aug 4, 2020
Messages
9
I took care to not use the 'headless' version of the 'java-1.8.0-openjdk'
 

John Mulcahy

REW Author
Joined
Apr 3, 2017
Messages
7,212
Would normally expect a client VM rather than a server VM, server VMs tend to be headless.
 

avrew

Registered
Thread Starter
Joined
Aug 4, 2020
Messages
9
Right.

Upon installing (using dnf) java-1.8.0-openjdk, java-1.8.0-openjdk-headless is pulled in as a dependency. Here's the available packages related to java-1.8.0:
Code:
$ dnf list all 'java-1.8.0*.x86_64'
Last metadata expiration check: 2:51:25 ago on fr. 11. sep. 2020 kl. 10.34 +0200.
Tilgjengelige pakker
java-1.8.0-openjdk.x86_64                                                1:1.8.0.265.b01-1.fc32                        updates
java-1.8.0-openjdk-accessibility.x86_64                                  1:1.8.0.265.b01-1.fc32                        updates
java-1.8.0-openjdk-accessibility-slowdebug.x86_64                        1:1.8.0.265.b01-1.fc32                        updates
java-1.8.0-openjdk-demo.x86_64                                           1:1.8.0.265.b01-1.fc32                        updates
java-1.8.0-openjdk-demo-slowdebug.x86_64                                 1:1.8.0.265.b01-1.fc32                        updates
java-1.8.0-openjdk-devel.x86_64                                          1:1.8.0.265.b01-1.fc32                        updates
java-1.8.0-openjdk-devel-slowdebug.x86_64                                1:1.8.0.265.b01-1.fc32                        updates
java-1.8.0-openjdk-headless.x86_64                                       1:1.8.0.265.b01-1.fc32                        updates
java-1.8.0-openjdk-headless-slowdebug.x86_64                             1:1.8.0.265.b01-1.fc32                        updates
java-1.8.0-openjdk-openjfx.x86_64                                        1:1.8.0.265.b01-1.fc32                        updates
java-1.8.0-openjdk-openjfx-devel.x86_64                                  1:1.8.0.265.b01-1.fc32                        updates
java-1.8.0-openjdk-openjfx-devel-slowdebug.x86_64                        1:1.8.0.265.b01-1.fc32                        updates
java-1.8.0-openjdk-openjfx-slowdebug.x86_64                              1:1.8.0.265.b01-1.fc32                        updates
java-1.8.0-openjdk-slowdebug.x86_64                                      1:1.8.0.265.b01-1.fc32                        updates
java-1.8.0-openjdk-src.x86_64                                            1:1.8.0.265.b01-1.fc32                        updates
java-1.8.0-openjdk-src-slowdebug.x86_64                                  1:1.8.0.265.b01-1.fc32                        updates

Perhaps you are able to see anything here which should be substituted/avoided?
 

avrew

Registered
Thread Starter
Joined
Aug 4, 2020
Messages
9
I can't find anything like that in the Fedora repos. According to the docs [here], the jre should be installed as part of the openjdk-devel package (which is installed here)
 

avrew

Registered
Thread Starter
Joined
Aug 4, 2020
Messages
9
Did an attempt now with the latest java from oracle - jdk-14.0.2 - but observing the same error upon launching REW.

Forgive my java-noobness, but is there a way i could check my installation, to see if i've got the jre set up and running as expected?

Thanks for your patience! :-)
 

John Mulcahy

REW Author
Joined
Apr 3, 2017
Messages
7,212
REW uses Java 8 only. You could try installing some earlier beta versions to see if the issue is specific to beta 60, they are available on the download History tab.
 

avrew

Registered
Thread Starter
Joined
Aug 4, 2020
Messages
9
Thanks. I tried several versions from the download-history tab, all resulting in the same error upon launch, indicating there's something wrong with my current java install.... :-/

Do you know of any java test cases i could run, to check the jre i've got here now? I'll head for the Fedora java wikis to check if someone there has any suggestions.

Thanks a lot! I'll report back if/when i'm able to pinpoint the cause of my problem.

-anders
 

avrew

Registered
Thread Starter
Joined
Aug 4, 2020
Messages
9
Hi again, seems i found a fix.

Scrapping my entire .m2 directory makes REW happy again :cool: Not sure what was in there which caused the pain. Now off to get those other things running again.

Currently running in Fedora fc32 (using the java-1.8.0-openjdk package).

Thanks for feedback and suggestions!

-anders
 
Top Bottom