Page 1 of 3

MegaDrumManagerFX, Ubuntu Studio and Java

PostPosted: Sat Nov 14, 2020 11:18 am
by Gluv1
Hi all,

I'm using Ubuntu Studio-20.04.

I have downloaded MegaDrumManagerFX version is now 20200331 and allowed it to run as a program in Permissions.
I have installed Java version: OpenJDK Runtime Environment (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.04)
I right-click on the MegaDrumManagerFX.jar icon and select Open With "OpenJDK Java 11 Runtime"
Nothing happens.

I tried an earlier version of Java, namely "OpenJDK Java 8 Runtime". Still nothing.

Does anyone have any ideas what is wrong? Is an even earlier version of Java needed?

Re: MegaDrumManagerFX, Ubuntu Studio and Java

PostPosted: Sat Nov 14, 2020 9:49 pm
by dmitri
What happens when you run it from a command line with?:
java -jar MegaDrumManagerFX.jar

Re: MegaDrumManagerFX, Ubuntu Studio and Java

PostPosted: Sun Nov 15, 2020 12:37 pm
by Gluv1
Hi Dmitri,

I get: Error: Unable to access jarfile MegaDrumManagerFX.jar

If I put in the full path I get:

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

Re: MegaDrumManagerFX, Ubuntu Studio and Java

PostPosted: Sun Nov 15, 2020 11:39 pm
by dmitri
You need either to install JavaFX for OpenJDK 11 or install OpenJDK 10 alongside 11.

Re: MegaDrumManagerFX, Ubuntu Studio and Java

PostPosted: Mon Nov 16, 2020 5:35 pm
by Gluv1
JavaFX when installed with OpenJDK 11 seems to do nothing and I can't find OpenJDK 10 anywhere.

Re: MegaDrumManagerFX, Ubuntu Studio and Java

PostPosted: Mon Nov 16, 2020 8:36 pm
by dmitri
Did you copy JavaFX bin and lib to JAVA_HOME as per https://developer.tizen.org/development ... tion-guide ?

Re: MegaDrumManagerFX, Ubuntu Studio and Java

PostPosted: Mon Nov 16, 2020 9:21 pm
by dmitri
Or run it like this:
java --module-path /usr/share/openjfx/lib --add-modules javafx.controls,javafx.web -jar MegaDrumManagerFX.jar

Re: MegaDrumManagerFX, Ubuntu Studio and Java

PostPosted: Mon Nov 16, 2020 11:11 pm
by Gluv1
dmitri wrote:Did you copy JavaFX bin and lib to JAVA_HOME as per https://developer.tizen.org/development ... tion-guide ?


I copied all the files in lib to JAVA_HOME. There is no bin file. I am using open JDK 11 not openJDK version12 as described on https://developer.tizen.org Would that make a difference?

I also signed up to try Oracle Java 11 but that doesn't work.

Re: MegaDrumManagerFX, Ubuntu Studio and Java

PostPosted: Mon Nov 16, 2020 11:26 pm
by Gluv1
dmitri wrote:Or run it like this:
java --module-path /usr/share/openjfx/lib --add-modules javafx.controls,javafx.web -jar MegaDrumManagerFX.jar

This gives Error: Unable to access jarfile MegaDrumManagerFX.jar

Must the Mega Drum module be connected for the manager to open?

Re: MegaDrumManagerFX, Ubuntu Studio and Java

PostPosted: Tue Nov 17, 2020 7:40 am
by ignotus
Try Oracle's version of Java, I think I solved the same issue by doing that: https://www.java.com/en/download/. I can't be sure as it was a long time ago and now I can open MDMFX fine with OpenJDK in Mint.