Page 2 of 3

Re: MegaDrumManagerFX, Ubuntu Studio and Java

PostPosted: Tue Nov 17, 2020 10:13 am
by Gluv1
Hi Ignotus,

I tried Oracle's version 11, based on what you had written on a earlier thread, but it doesn't work.

Re: MegaDrumManagerFX, Ubuntu Studio and Java

PostPosted: Tue Nov 17, 2020 10:25 am
by Gluv1
Is there a "Install MegaDrumManagerFX on Linux for dummies?"

This is the error I am getting:

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: Tue Nov 17, 2020 7:12 pm
by dmitri
Gluv1 wrote:
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?

You either must copy MegaDrumManagerFX.jar to the dir where you run the command from or give it a full path to MegaDrumManagerFX:
java --module-path /usr/share/openjfx/lib --add-modules javafx.controls,javafx.web -jar /full/path/to/MegaDrumManagerFX.jar

Re: MegaDrumManagerFX, Ubuntu Studio and Java

PostPosted: Tue Nov 17, 2020 7:29 pm
by Gluv1
Thanks Dmitri, but this gives:

gluv:~$ java --module-path /usr/share/openjfx/lib --add-modules javafx.controls,javafx.web -jar /home/gluv/Desktop/Apps/MegaDrumManagerFX.jar
Unrecognized option: --module-path
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
gluv:~$


I really need step by step instructions.

Re: MegaDrumManagerFX, Ubuntu Studio and Java

PostPosted: Tue Nov 17, 2020 10:24 pm
by dmitri
Did you install older java version?
What dos 'java -version' show now?
If it now shows '1.8...' run the command just as:
java -jar /home/gluv/Desktop/Apps/MegaDrumManagerFX.jar

Re: MegaDrumManagerFX, Ubuntu Studio and Java

PostPosted: Tue Nov 17, 2020 10:52 pm
by Gluv1
It works!!


gluv:~$ sudo update-alternatives --config java
There are 4 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 auto mode
* 1 /opt/jdk/jre1.8.0_271/bin/java 100 manual mode
2 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 manual mode
3 /usr/lib/jvm/java-11-oracle/bin/java 1091 manual mode
4 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode

Press <enter> to keep the current choice[*], or type selection number:
gluv:~$ java -version
java version "1.8.0_271"
Java(TM) SE Runtime Environment (build 1.8.0_271-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.271-b09, mixed mode)
gluv:~$ java -jar /home/gluv/Desktop/Apps/MegaDrumManagerFX.jar


jre1.8.0_271 came from here: https://www.java.com/en/download/linux_manual.jsp
It's available without having to create an Oracle account.
I installed it by adapting the instructions on this page: https://www.digitalocean.com/community/ ... ubuntu-vps



I just need to tidy things up now and see if I can start it from the GUI. But it works, so great, Thanks.

Re: MegaDrumManagerFX, Ubuntu Studio and Java

PostPosted: Tue Nov 17, 2020 11:25 pm
by dmitri
You manage to run it, great! You still should be able to run it with openjdk 11 and openjfx 11:
Screenshot 2020-11-17 231350 - resized.png

Re: MegaDrumManagerFX, Ubuntu Studio and Java

PostPosted: Fri Jan 08, 2021 6:32 pm
by ibanman555
I would like to know how to remember window position of Megadrum Manager FX in Linux, specifically Linux Mint 20 in my case. Each time the software is opened, the main window is not maximized, and would like it to be. Additionally, I like to have the detached midi log window maxed on a second monitor, it opens as a sliver and needs to be resized and moved upon opening the software each time. I did attempt to use Compiz Config Settings Manager to set up the windows but it doesn't appear to lock MDMFX window sizes for me. Any insight? Thanks

Re: MegaDrumManagerFX, Ubuntu Studio and Java

PostPosted: Tue Mar 02, 2021 9:37 am
by Gluv1
...the main window is not maximized, and... the detached midi log... opens as a sliver and needs to be resized and moved upon opening the software each time


Mine does exactly that, except for a short time when it opened with the main window and the midi panel maximised. Problem is I don't know what changed to make it open one way or the other.

Edit:
It might be Main > Options > Misc tab > Save options on exit
If the detached midi panel is maximised on exiting MDMFX, it all should restart in the same way.

Re: MegaDrumManagerFX, Ubuntu Studio and Java

PostPosted: Tue Mar 02, 2021 9:44 am
by Gluv1
Anyway back to Java. Following an attempted update from Java 8, MGMFX has stopped loading again.

Does MGMFX work with the latest versions of Java based on Java 15?
Do OpenJDK 15 and OpenJFX 15 work, or must it be JDK and JFX versions 11 or earlier?
What's the difference between JDK and JFX and are both needed?
Is it OK to use Open JDK/JFX or must it be the Oracle version?
Are there any step by step instructions on how to install these softwares so that MGMFX works?