Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported JavaFX configuration #123

Open
Shinusagi opened this issue Jun 26, 2022 · 4 comments
Open

Unsupported JavaFX configuration #123

Shinusagi opened this issue Jun 26, 2022 · 4 comments

Comments

@Shinusagi
Copy link

I usually opened the application “ns-usbloader” and worked just fine on my Manjaro distro to connect to the Switch… however it stopped working, or better said it still open but it doesn’t seem to connect anymore with the Nintendo Switch anymore via USB

The error I get from running it directly over the console is this one:

manjaro@Manjaro-PC: sudo ns-usbloader
Jun 26, 2022 12:58:20 AM com.sun.javafx.application.PlatformImpl startup
WARNING: Unsupported JavaFX configuration: classes were loaded from ‘unnamed module @774bd0a2’

I uninstalled EVERYTHING java related, even stuff that forced me to uninstall also other apps but I get rid of Java and then after a reboot and clean of orphan packages I installed only the JRE from the repos and Azul Zulu JRE which comes with JafaFX… but I got the same results

After that I checked the libusb1 but it is installed already, so I have no clue what the Java issue is, I found information about running modules and other stuff but it kind of lost me. I tried execting the ns-usbloader using the legacy version but nothing changes, I also installed it from the repos as well and I get the same result.
Asked on Manjaro forums but it seems more specific to the app so I came here so maybe someone can give me a hand with this please.

@developersu
Copy link
Owner

Hi
Thank you for reporting.
These JavaFX-related messages are not that important. I see the same. As for JDK/JRE: you should be good with manjaro's default OpenJDK 11, for example.

Did you created setup for 'udev'? It's should be created in case you've installed app from AUR.
Also please try to run application as root. If it helps then udev is a thing.

@neutralalice
Copy link

neutralalice commented Oct 29, 2022

wondering if they didn't post the full bit and instead just posted the first snippet. I get the same first bit of snippet, and guessing it has to do with running this on wayland without X11("Unable to open DISPLAY").
Here's my full error on Arch linux(have udev rules)

Oct 29, 2022 10:42:38 PM com.sun.javafx.application.PlatformImpl startup
WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @59487e7'
Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

Exception in thread "main" java.lang.UnsupportedOperationException: Unable to open DISPLAY
at com.sun.glass.ui.gtk.GtkApplication.lambda$new$6(GtkApplication.java:202)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at com.sun.glass.ui.gtk.GtkApplication.(GtkApplication.java:200)
at com.sun.glass.ui.gtk.GtkPlatformFactory.createApplication(GtkPlatformFactory.java:41)
at com.sun.glass.ui.Application.run(Application.java:146)
at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:290)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:293)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:163)
at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:659)
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:679)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:196)
at java.base/java.lang.Thread.run(Thread.java:1589)

@developersu
Copy link
Owner

It's full snipped originally posted, but for X11 setup.
I didn't test it without having X11 behind so, I you're correct. JavaFX devs should be taking care of wayland support.

@Cueropedo
Copy link

Not sure if it's related, but on Clear Linux OS on wayland this happens if I try to open it via a ".sh" I made for opening in the GNOME launcher (.desktop file)

Screencast.from.2023-11-24.22-46-10.webm

However ns-usbloader opens fine if I manually type the command in console without using the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants