While testing out different Java versions we found that the JetBrains Runtime 17.0.8 works as expected.
The workaround is to replace the bundled JRE in DbVisualizer:
- Unpack the file
- Open a Terminal
- cd DbVisualizer.app/Contents/Resources/jre.bundle
- mv Contents Contents.original
- cp -rp ~/Downloads/jbr_jcef-126.96.36.199-osx-aarch64-b1070.2/Contents .
- Now launch DbVisualizer and open Help->About which should show the Java version as in this screenshot:
The bug is reported to Oracle: https://bugs.openjdk.org/browse/JDK-8317771