Skip to Main Content

SQLcl: MCP Server & SQL Prompt

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!

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

This post has been answered by thatJeffSmith-Oracle on Sep 9 2025
Jump to Answer
Comments
Post Details
Added on Apr 29 2025
2 comments
1,491 views