When starting sqlcl 25.1 (on Windows 11) with JRE 24 as the JAVA_HOME, one gets the following warnings:
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by org.fusesource.jansi.internal.JansiLoader in an unnamed module (file:/C:/Oracle/sqlcl/lib/jansi.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
Seems that other software has similar “issues” - e.g. https://github.com/jline/jline3/issues/1067
edit1: user's guide does mention “To run SQLcl , you need to install Oracle Java 11, 17 or 21.” - but later/newer is always better, no?
edit2: setting “set JAVA_TOOL_OPTIONS=--enable-native-access=ALL-UNNAMED” before running sql(cl) fixes things… Clunky workaround ;-)