Running KryoFlux GUI (Debian 10)

All questions about how to use KryoFlux go here.
fryo
Posts: 9
Joined: Sat Jan 18, 2020 1:17 pm

Re: Running KryoFlux GUI (Debian 10)

Post by fryo »

It seems there is no connection to the KryoFlux board when running the GUI without 'sudo'. Unfortunately, 'sudo' is not available here on Debian by default:

Code: Select all

sudo java -jar kryoflux-ui.jar
user is not in the sudoers file.  This incident will be reported.
So I tried 'su -', but the GUI still fails to start.

Code: Select all

su -
java -jar kryoflux-ui.jar
Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException: 
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
Can someone please help me with this issue?
brightcaster
Posts: 351
Joined: Fri Nov 08, 2013 10:48 pm

Re: Running KryoFlux GUI (Debian 10)

Post by brightcaster »

Looks like if you installed "default-jre-headles" instead of "default-jre" for me!
David
fryo
Posts: 9
Joined: Sat Jan 18, 2020 1:17 pm

Re: Running KryoFlux GUI (Debian 10)

Post by fryo »

I enabled sudo access (usermod -a -G sudo username) and now KryoFlux works as expected!
brightcaster
Posts: 351
Joined: Fri Nov 08, 2013 10:48 pm

Re: Running KryoFlux GUI (Debian 10)

Post by brightcaster »

If DTC runs without root rights the GUI should do it also. If not it will be a matter of java and other java apps will show the same behaivior.

Maybe you installed both "default-jre-headles" and "default-jre". Uninstalling "default-jre-headles" and reinstalling "default-jre" should do the trick without sudoing.

David
fryo
Posts: 9
Joined: Sat Jan 18, 2020 1:17 pm

Re: Running KryoFlux GUI (Debian 10)

Post by fryo »

I installed 'adoptopenjdk-8-hotspot' because 'default-jre' does not work. Please check previous posts.
skitt
Posts: 17
Joined: Sun Nov 07, 2010 12:09 am

Re: Running KryoFlux GUI (Debian 10)

Post by skitt »

The KryoFlux GUI fails for a number of reasons with any JDK or JRE 10 or later.

The first error is caused by the renaming of the look-and-feel classes: the KryoFlux GUI is looking for “com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel” but JDK 10 and later provide “javax.swing.plaf.nimbus.NimbusLookAndFeel”.

Fixing that (by providing the class under the old name) yields another error: CStreamDecoder checks the Java version, and doesn’t accept “11” as a valid version.

I haven’t looked into this any further, it’s really up to KryoFlux to fix this so that the UI can continue working on current Java releases.
Post Reply