java installation and mxj

florian1947's icon

Sorry to bring up an old subject - but it seems I'm stuck and need some hints..
On a Mac Air M2, Monterey, Max 8.5.6, I can't seem to convince Max that Java is installed, and that it should run the mxj object.

The java plugin is installed:
1.81.8.0_381 at Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java

Java SDK:
$JAVA_HOME: /Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home

Test java files compile and run from terminal.

What is missing?