Java app does not start on m2
When I start eXist-db.app which is Java dependent, macOS claims it cannot start because I don't have Java 8 or higher on my machine.
In Terminal.app I can confirm I do by running java -version, echo $JAVA_HOME etc. Also, running eXist-db.app/Contents/Resources/bin/startup.sh works just fine. Tried with temurin8 and openjdk, but I don't think the exact version of Java really matters. Before on my Intel MBP this was never an issue.
Why does macOS claim an issue with Java that is plain and simple incorrect? What makes it think Java is not installed? More importantly: how do I fix this?
MacBook Pro Apple Silicon 2023