MegaDrumManagerFX on Ubuntu 19.04

Discussions of any related software

Moderator: Related software moderators

MegaDrumManagerFX on Ubuntu 19.04

Postby pettersundlof » Wed Aug 21, 2019 8:15 pm

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)
pettersundlof
 
Posts: 30
Joined: Wed Jul 24, 2019 8:36 am

Re: MegaDrumManagerFX on Ubuntu 19.04

Postby dmitri » Thu Aug 22, 2019 3:28 pm

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?
dmitri
Site Admin
 
Posts: 8706
Joined: Fri Aug 03, 2007 8:05 pm

Re: MegaDrumManagerFX on Ubuntu 19.04

Postby pettersundlof » Thu Aug 22, 2019 5:20 pm

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
pettersundlof
 
Posts: 30
Joined: Wed Jul 24, 2019 8:36 am

Re: MegaDrumManagerFX on Ubuntu 19.04

Postby pettersundlof » Thu Aug 22, 2019 5:37 pm

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 :/
pettersundlof
 
Posts: 30
Joined: Wed Jul 24, 2019 8:36 am

Re: MegaDrumManagerFX on Ubuntu 19.04

Postby pettersundlof » Mon Aug 26, 2019 12:00 pm

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
pettersundlof
 
Posts: 30
Joined: Wed Jul 24, 2019 8:36 am

Re: MegaDrumManagerFX on Ubuntu 19.04

Postby pettersundlof » Mon Aug 26, 2019 2:04 pm

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...
pettersundlof
 
Posts: 30
Joined: Wed Jul 24, 2019 8:36 am

Re: MegaDrumManagerFX on Ubuntu 19.04

Postby ignotus » Mon Aug 26, 2019 2:22 pm

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.
If it ain't broken... fix it until it is.
ignotus
 
Posts: 882
Joined: Sat Nov 24, 2007 11:36 am

Re: MegaDrumManagerFX on Ubuntu 19.04

Postby ccchris » Thu Apr 02, 2020 6:59 pm

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
ccchris
 
Posts: 1
Joined: Mon Aug 06, 2018 10:34 am

Re: MegaDrumManagerFX on Ubuntu 19.04

Postby johey » Mon Feb 08, 2021 9:37 am

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$
johey
 
Posts: 13
Joined: Sat Apr 14, 2018 9:05 am

Re: MegaDrumManagerFX on Ubuntu 19.04

Postby johey » Mon Feb 08, 2021 11:05 am

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).
johey
 
Posts: 13
Joined: Sat Apr 14, 2018 9:05 am

Next

Return to Related Software

Who is online

Users browsing this forum: No registered users and 15 guests