MegaDrumManagerFX, Ubuntu Studio and Java

Discussions of any related software

Moderator: Related software moderators

Re: MegaDrumManagerFX, Ubuntu Studio and Java

Postby Gluv1 » Tue Nov 17, 2020 10:13 am

Hi Ignotus,

I tried Oracle's version 11, based on what you had written on a earlier thread, but it doesn't work.
Gluv1
 
Posts: 9
Joined: Sat Nov 14, 2020 10:59 am

Re: MegaDrumManagerFX, Ubuntu Studio and Java

Postby Gluv1 » Tue Nov 17, 2020 10:25 am

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
Gluv1
 
Posts: 9
Joined: Sat Nov 14, 2020 10:59 am

Re: MegaDrumManagerFX, Ubuntu Studio and Java

Postby dmitri » Tue Nov 17, 2020 7:12 pm

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

Re: MegaDrumManagerFX, Ubuntu Studio and Java

Postby Gluv1 » Tue Nov 17, 2020 7:29 pm

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.
Gluv1
 
Posts: 9
Joined: Sat Nov 14, 2020 10:59 am

Re: MegaDrumManagerFX, Ubuntu Studio and Java

Postby dmitri » Tue Nov 17, 2020 10:24 pm

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

Re: MegaDrumManagerFX, Ubuntu Studio and Java

Postby Gluv1 » Tue Nov 17, 2020 10:52 pm

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.
Gluv1
 
Posts: 9
Joined: Sat Nov 14, 2020 10:59 am

Re: MegaDrumManagerFX, Ubuntu Studio and Java

Postby dmitri » Tue Nov 17, 2020 11:25 pm

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
You do not have the required permissions to view the files attached to this post.
dmitri
Site Admin
 
Posts: 8401
Joined: Fri Aug 03, 2007 8:05 pm

Previous

Return to Related Software

Who is online

Users browsing this forum: No registered users and 30 guests