Blade update command fails

When typing “blade update” in console, I am getting this error in newly opened window:

java.lang.NoSuchMethodException: java.util.prefs.WindowsPreferences.WindowsRegOpenKey(int,[B,int)
at java.base/java.lang.Class.getDeclaredMethod(Class.java:2848)
at aQute.jpm.platform.WinRegistry.(WinRegistry.java:79)
at aQute.jpm.platform.Windows.findJavaHomes(Windows.java:432)
at aQute.jpm.platform.Windows.getVMs(Windows.java:384)
at aQute.jpm.lib.JustAnotherPackageManager.getVMs(JustAnotherPackageManager.java:1382)
at aQute.jpm.main.Main._install(Main.java:505)
at aQute.lib.getopt.CommandLine.execute(CommandLine.java:157)
at aQute.jpm.main.Main._jpm(Main.java:384)
at aQute.lib.getopt.CommandLine.execute(CommandLine.java:157)
at aQute.jpm.main.Main.run(Main.java:851)
at aQute.jpm.main.Main.main(Main.java:125)
Error
0. [Reflection.newIllegalAccessException] Failed java.lang.IllegalAccessException: class aQute.jpm.platform.WinRegistry cannot access a member of class java.util.prefs.WindowsPreferences (in module java.prefs) with modifiers “private static native”
Error performing updated. Please run the following command manually.
jpm install -f “https://repository-cdn.liferay.com/nexus/content/repositories/liferay-public-snapshots/com/liferay/blade/com.liferay.blade.cli//8.0.3-SNAPSHOT/com.liferay.blade.cli-8.0.3-20260630.170009-1.jar

JDK 21 (also tried in JDK 8)
jpm 4.0.0.202108060241

My current blade version is 7.0.6.SNAPSHOT202509031920

An idea how upgrade to blade 8? I’d like to test the AI with rules describet here: AI Tools in Workspace - Liferay Official Documentation - Liferay Learn

I had the same problem and someone from Liferay gave me this tip in a Webinar - run this in your Windows Terminal beforehand:

set JAVA_TOOL_OPTIONS=--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED

Great, it worked! I’ve tried to open restrictions differently, and it was apparently ignored.