Skip to Main Content

Database Software

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.2 warning: A restricted method in java.lang.System has been called

VOEURNG SOVANNAug 14 2025

on my windows 11 when I login SQLcl version 25.2 it got the warning like that
PS :\App\sqlcl-latest\sqlcl\bin> .\sql.exe /nolog
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:/:/App/sqlcl-latest/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

SQLcl: Release 25.2 Production on Thu Aug 14 09:41:21 2025

Copyright (c) 1982, 2025, Oracle. All rights reserved.

SQL> exit

Working around by setting JAVA_TOOL_OPTIONS like following

PS :\App\sqlcl-latest\sqlcl\bin> $env:JAVA_TOOL_OPTIONS="--enable-native-access=ALL-UNNAMED"
PS :\App\sqlcl-latest\sqlcl\bin> sql.exe /nolog
Picked up JAVA_TOOL_OPTIONS: --enable-native-access=ALL-UNNAMED

SQLcl: Release 25.2 Production on Thu Aug 14 09:42:47 2025

Copyright (c) 1982, 2025, Oracle. All rights reserved.

SQL>

I am not sure it is the bug of software SQlcl or because of java
here is my current java version
PS D:\App\sqlcl-latest\sqlcl\bin> java -version
Picked up JAVA_TOOL_OPTIONS: --enable-native-access=ALL-UNNAMED
java version "24.0.1" 2025-04-15
Java(TM) SE Runtime Environment (build 24.0.1+9-30)
Java HotSpot(TM) 64-Bit Server VM (build 24.0.1+9-30, mixed mode, sharing)
PS D:\App\sqlcl-latest\sqlcl\bin>

Comments
Post Details
Added on Aug 14 2025
0 comments
43 views