kunstmusik / blue

Blue - An Integrated Music Environment
https://blue.kunstmusik.com
GNU General Public License v2.0
130 stars 11 forks source link

build not starting #651

Closed muccio closed 2 years ago

muccio commented 2 years ago

latest build 2.8.1 (tried with different versions of java) on mac monterey always give:

org.netbeans.InvalidException: StandardModule:com.kunstmusik.blue.plaf jarFile: /Users/.../blue.app/Contents/Resources/blue/blue/modules/com-kunstmusik-blue-plaf.jar: java.lang.UnsupportedClassVersionError: blue/plaf/Installer has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

previous version (2.7.4) runs fine

kunstmusik commented 2 years ago

Java class version 52 is Java 8 and Java 11+ is required to run Blue. If you have installed a version 11 Java then there must be a Java 8 version that is still present. Could you mention which Java you installed?

On Thu, Apr 14, 2022 at 4:47 AM mario salvucci @.***> wrote:

tried latest build with different versions of java and always get this:

org.netbeans.InvalidException: StandardModule:com.kunstmusik.blue.plaf jarFile: /Users/.../ blue.app/Contents/Resources/blue/blue/modules/com-kunstmusik-blue-plaf.jar: java.lang.UnsupportedClassVersionError: blue/plaf/Installer has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

— Reply to this email directly, view it on GitHub https://github.com/kunstmusik/blue/issues/651, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMMA62ZA3NDMUP4LNAVHX3VE7LQ5ANCNFSM5TNCXQEQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

muccio commented 2 years ago

I have different versions (up to the latest release) and switching from command line to try to get it work, but still getting the same error

kunstmusik commented 2 years ago

Two things I can think of:

  1. Try setting JAVA_HOME in your ~/.zshrc file to the location of a newer version of Java. For example, I have:

JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home

  1. Try the latest dev build. There is one here (requires logging in with github account):

https://github.com/kunstmusik/blue/actions/runs/2141672361

Note: I am going to look at making a version of Blue that has the JVM included (hopefully done this weekend) that may avoid this kind of problem in the future.

muccio commented 2 years ago

Unfortunately neither of this is working (path was already set to latest java release), dev build starts without giving error messages but tools and stuff is totally missing from the interface, same thing with the windows version, sounds like we are stuck with the old one.

kunstmusik commented 2 years ago

(Apologies for delay in reply)

If the app is able to start, it may be an issue that the saved preferences are corrupt or incompatible with the latest version of Blue. Please try exiting Blue, deleting (or moving out of the way) the ~/Library/Application Support/blue/dev folder and starting Blue once again.

muccio commented 2 years ago

nope, unfortunately also after deleting the folder we still get: org.netbeans.InvalidException: StandardModule:com.kunstmusik.blue.plaf jarFile: /private/var/folders/sy/8vv1vfsx0l51xpn8c3kqzy500000gn/T/AppTranslocation/2A9B57E7-273B-4DD0-8FED-56BDB7F603EB/d/blue.app/Contents/Resources/blue/blue/modules/com-kunstmusik-blue-plaf.jar: java.lang.UnsupportedClassVersionError: blue/plaf/Installer has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

running on mac os monterey 12.2.1

kunstmusik commented 2 years ago

This message:

"this version of the Java Runtime only recognizes class file versions up to 52.0"

Means it is using a Java 8 runtime. That is one problem that should prevent loading the app. The other problem is the app does load but the UI is messed up.

Please try these two things:

  1. Delete your Blue preferences (if on Windows, remove the c:\Users[your username]\AppData\Roaming\blue folder)
  2. Run one of the builds from https://github.com/kunstmusik/blue/actions/runs/2212867963

For MacOS, these builds now contain a Java installation and will ignore your local java installations; Windows build also includes Java and ignores local java installation.

muccio commented 2 years ago

you made it, everything seems to be ok, btw had to reset chmod permissions on monterey to make it work! tnx buddy for being so kind in debugging!

kunstmusik commented 2 years ago

Glad that worked out in the end; hopefully after the next release these kinds of issues won't pop up again for anyone, but I'll see if I can add some info to the manual for this situation.