Skip to Main Content

SQLcl

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

SQLcl: Release 25.1 + JRE 24 warning: A restricted method in java.lang.System has been called

jdoornaeApr 29 2025 — edited Apr 29 2025

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 ;-)

Comments
Post Details
Added on Apr 29 2025
0 comments
582 views