jjazzboss / JJazzLab

A complete and open application for automatic backing tracks generation.
https://www.jjazzlab.org
GNU Lesser General Public License v2.1
376 stars 22 forks source link

Run on Ubuntu 22.04 #379

Closed antonio-petricca closed 6 months ago

antonio-petricca commented 6 months ago

I compiled it by Java 17, but running JJazzLab/application/target/jjazzlab/bin/jjazzlab I get the following error:

Unrecognized option: --add-modules=jdk.incubator.foreign
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
jjazzboss commented 6 months ago

it's because jjazzlab is not run with JRE17, but probably with an earlier JRE. You need to add --jdkhome <jdk_dir> on the command line, or update JJazzLab/application/target/jjazzlab/etc/jjazzlab.conf file, jdkhome variable.

antonio-petricca commented 6 months ago

Thank you it worked by changed the JDK home setting.

wvengen commented 5 months ago

Which Java version did you end up using?

wvengen commented 5 months ago

369 shows Java 17, now it compiles and runs.