Page 1 of 2

MegaDrumManagerFX on Ubuntu 19.04

PostPosted: Wed Aug 21, 2019 8:15 pm
by pettersundlof
Hi! I'm having some issues launching MegaDrumManagerFX.jar on Ubuntu 19.04.

I'm using OpenJDK 11.0.4 2019-07-16.

I get:

$ java -jar "MegaDrumManagerFX.jar"
Error: Could not find or load main class info.megadrum.managerfx.Main
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application

Any clues?

I also tried Oracle's JDK, same error:


java -jar MegaDrumManagerFX.jar
Error: Could not find or load main class info.megadrum.managerfx.Main
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
petter@gunilla2:~/Skrivbord$ java --version
java 11.0.4 2019-07-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.4+10-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.4+10-LTS, mixed mode)

Re: MegaDrumManagerFX on Ubuntu 19.04

PostPosted: Thu Aug 22, 2019 3:28 pm
by dmitri
Hm, runs fine for me with this java version:

dmitri@ubuntu:~$ java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) Client VM (build 25.131-b11, mixed mode)

Anybody else is having the same problem?

Re: MegaDrumManagerFX on Ubuntu 19.04

PostPosted: Thu Aug 22, 2019 5:20 pm
by pettersundlof
Tried installing that version:

java -version
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~19.04.1-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)

But: $ java -jar MegaDrumManagerFX.jar
Error: Could not find or load main class info.megadrum.managerfx.Main

Re: MegaDrumManagerFX on Ubuntu 19.04

PostPosted: Thu Aug 22, 2019 5:37 pm
by pettersundlof
I've tried Googling this for the last half hour, and it seems to be an issue with how classpath is defined or something.

Anyhow, I'd very much appreciate any pointers if anyone's running this on a concurrent Linux system. My MegaDrum is finished but the huge amount of configurating I need to do will be a pain in the hardware UI :/

Re: MegaDrumManagerFX on Ubuntu 19.04

PostPosted: Mon Aug 26, 2019 12:00 pm
by pettersundlof
I've now started an older computer with Ubuntu 18.04.3 and
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~18.04.1-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)

and the same error:

$ java -jar MegaDrumManagerFX.jar
Error: Could not find or load main class info.megadrum.managerfx.Main

Re: MegaDrumManagerFX on Ubuntu 19.04

PostPosted: Mon Aug 26, 2019 2:04 pm
by pettersundlof
Finally got it running on a very old Ubuntu version on an old partition, 14.04.3 and java
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) Server VM (build 25.66-b17, mixed mode)

I would like to get it launching on a modern installation also, though...

Re: MegaDrumManagerFX on Ubuntu 19.04

PostPosted: Mon Aug 26, 2019 2:22 pm
by ignotus
I also had that same problem. There's no way I could get it to run using OpenJDK. Thing is, it's been some time since I sorted it out and I can't really remember how I did it other than by installing the Oracle version and uninstalling OpenJDK. I *think* I installed "Oracle Java(TM) Development Kit (JDK) 8" from the repos and then followed the instructions. I'm on Mint 19.1 but it uses the Ubuntu repos.

Re: MegaDrumManagerFX on Ubuntu 19.04

PostPosted: Thu Apr 02, 2020 6:59 pm
by ccchris
I also had the same problem with OpenJDK 8, no problems with Oracle jre1.8-1.8.0_241-fcs.x86_64 see Link: https://www.java.com/de/download/linux_manual.jsp

Re: MegaDrumManagerFX on Ubuntu 19.04

PostPosted: Mon Feb 08, 2021 9:37 am
by johey
I am having the same issue with both OpenJDK and Oracle Java 15.

With OpenJDK (JRE):

Code: Select all
johan@xps:~/Downloads$ java -jar MegaDrumManagerFX.jar
Error: Could not find or load main class info.megadrum.managerfx.Main
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
johan@xps:~/Downloads$ java --version
openjdk 11.0.9.1 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.10)
OpenJDK 64-Bit Server VM (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.10, mixed mode, sharing)
johan@xps:~/Downloads$


With Oracle:

Code: Select all
johan@xps:~/Downloads$ java -jar MegaDrumManagerFX.jar
Error: Could not find or load main class info.megadrum.managerfx.Main
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
johan@xps:~/Downloads$ java --version
java 15.0.2 2021-01-19
Java(TM) SE Runtime Environment (build 15.0.2+7-27)
Java HotSpot(TM) 64-Bit Server VM (build 15.0.2+7-27, mixed mode, sharing)
johan@xps:~/Downloads$

Re: MegaDrumManagerFX on Ubuntu 19.04

PostPosted: Mon Feb 08, 2021 11:05 am
by johey
Alright, after some more googling, I came up with this solution:

Code: Select all
java --module-path /usr/share/openjfx/lib --add-modules javafx.controls,javafx.web -jar MegaDrumManagerFX.jar


For this to work, I first needed to install openjfx from Ubuntu upstream (running Ubuuntu 20.10).