Java for Dummies - Me UI is bust!

All questions about how to use KryoFlux go here.
Post Reply
TheProf
Posts: 3
Joined: Mon Apr 02, 2018 10:00 am

Java for Dummies - Me UI is bust!

Post by TheProf » Mon Apr 02, 2018 10:20 am

Hello Fluxers,

I just received my Kryoflux module, set it all up for use with my iMac and I can read tracks from a diskette using DTC. This is a good start and the beginning of a project. However, something I have tried and is now making me feel vastly inadequate is not being able to get the UI to work. When I was young I used to be something of a dandy with this type of stuff. Now I am old it is making me feel very silly indeed. Here’s what happens:

iWorkshop:Applications Andy$ java -jar kryoflux-ui.jar
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.kryoflux.ui.KryoFlux.main(KryoFlux.scala)
Caused by: java.lang.ClassNotFoundException: com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:374)
at java.desktop/javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:2036)
at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:631)
at com.kryoflux.ui.KryoFluxApp.<init>(KryoFlux.scala:26)
at com.kryoflux.ui.KryoFlux$.<init>(KryoFlux.scala:12)
at com.kryoflux.ui.KryoFlux$.<clinit>(KryoFlux.scala)
... 1 more

iWorkshop:Applications Andy$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home

iWorkshop:Applications SynthProf$ java -version
java version "10" 2018-03-20
Java(TM) SE Runtime Environment 18.3 (build 10+46)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10+46, mixed mode)

If anyone can spot the mistake I am making can they let me know. I’d be ever so grateful!

Best wishes,
Andy

User avatar
karadoc
Posts: 137
Joined: Sun Oct 31, 2010 9:12 pm

Re: Java for Dummies - Me UI is bust!

Post by karadoc » Mon Apr 02, 2018 11:57 am

It's not you.

There were some big changes in Java 9 and 10 (the modularity changes specifically) that took some time for us to adapt to. Hopefully the test version of the UI should work though. Can you try this version and tell us if it works?

http://kryoflux.com/kryoflux-ui.jar

User avatar
karadoc
Posts: 137
Joined: Sun Oct 31, 2010 9:12 pm

Re: Java for Dummies - Me UI is bust!

Post by karadoc » Mon Apr 02, 2018 12:12 pm

It looks like there as been some further changes in the same area for Java 10. We'll look into this and get back to you. If you want to get the UI to work, you'll have to use Java 9 for now, where the latest version will work:

https://kryoflux.com/kryoflux-ui.jar

TheProf
Posts: 3
Joined: Mon Apr 02, 2018 10:00 am

Re: Java for Dummies - Me UI is bust!

Post by TheProf » Mon Apr 02, 2018 12:22 pm

Hi Karadoc,

Thanks for putting my mind at ease. I will downgrade the JDK and use the UI version you have suggested. So nice to know I am not being an idiot for once, which makes a change!

Very best wishes,
Andy

TheProf
Posts: 3
Joined: Mon Apr 02, 2018 10:00 am

Re: Java for Dummies - Me UI is bust!

Post by TheProf » Mon Apr 02, 2018 1:03 pm

...just a quick update. I downgraded to:

java version "1.8.0_162"
Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)

I am running:

Darwin iWorkshop.local 17.4.0 Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64

or MacOSX 10.13.3 (High Sierra)

...and the UI version supplied with the pack in the downloads section (UI V1.8) works just fine. Hope this might be of help to anyone else in bother along these lines.

Again thanks for the prompt replies and help.

Best wishes,
Andy

User avatar
karadoc
Posts: 137
Joined: Sun Oct 31, 2010 9:12 pm

Re: Java for Dummies - Me UI is bust!

Post by karadoc » Mon Apr 02, 2018 3:06 pm

Great, thanks for the info. Java 8 is still a Vendor supported version at least.

I've now updated the UI for Java 10 (some features we were using that were deprecated in 9 were finally removed in 10), which you can get from the latest version below and will make part of the next official release package.

https://kryoflux.com/kryoflux-ui.jar

Post Reply