2
19
Fork
You've already forked array
3

Error when tryin to run latest release on Windows #34

Open
opened 2025年11月06日 23:29:27 +01:00 by maacl · 1 comment

I have downloaded latest release from here

I get the following error:

kap-jvm-win-20251103-1\gui\bin
❯ .\kap-jvm.bat
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by org.jline.nativ.JLineNativeLoader in an unnamed module (file:/C:/Users/marti/Downloads/kap-jvm-win-20251103-1/gui/lib/jline-3.28.0.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
Exception in thread "main" java.lang.NullPointerException
 at java.base/java.util.Objects.requireNonNull(Objects.java:220)
 at java.base/java.lang.ScopedValue.orElse(ScopedValue.java:614)
 at com.dhsdevelopments.kap.InitKt.currentStorageStackOrNull(init.kt:45)
 at com.dhsdevelopments.kap.Engine.parseAndEvalWithPostProcessing(engine.kt:1285)
 at com.dhsdevelopments.kap.Engine.parseAndEval(engine.kt:723)
 at com.dhsdevelopments.kap.Engine.parseAndEval$default(engine.kt:718)
 at com.dhsdevelopments.kap.repl.AbstractGenericRepl.loadStdLibrary(repl-builder.kt:300)
 at com.dhsdevelopments.kap.repl.AbstractGenericRepl.init(repl-builder.kt:187)
 at com.dhsdevelopments.kap.gui.Client$Companion.engineInit(Client.kt:680)
 at com.dhsdevelopments.kap.gui.Client$Companion.startGui(Client.kt:659)
 at com.dhsdevelopments.kap.gui.Client$Companion.main(Client.kt:630)
 at com.dhsdevelopments.kap.gui.Client.main(Client.kt)
kap-jvm-win-20251103-1\gui\bin
❯ java -version
openjdk version "21.0.9" 2025年10月21日 LTS
OpenJDK Runtime Environment Temurin-21.0.9+10 (build 21.0.9+10-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.9+10 (build 21.0.9+10-LTS, mixed mode, sharing)
I have downloaded latest release from [here](https://kapdemo.dhsdevelopments.com/files/kap-jvm-win-20251103-1.zip) I get the following error: ``` kap-jvm-win-20251103-1\gui\bin ❯ .\kap-jvm.bat WARNING: A restricted method in java.lang.System has been called WARNING: java.lang.System::load has been called by org.jline.nativ.JLineNativeLoader in an unnamed module (file:/C:/Users/marti/Downloads/kap-jvm-win-20251103-1/gui/lib/jline-3.28.0.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 Exception in thread "main" java.lang.NullPointerException at java.base/java.util.Objects.requireNonNull(Objects.java:220) at java.base/java.lang.ScopedValue.orElse(ScopedValue.java:614) at com.dhsdevelopments.kap.InitKt.currentStorageStackOrNull(init.kt:45) at com.dhsdevelopments.kap.Engine.parseAndEvalWithPostProcessing(engine.kt:1285) at com.dhsdevelopments.kap.Engine.parseAndEval(engine.kt:723) at com.dhsdevelopments.kap.Engine.parseAndEval$default(engine.kt:718) at com.dhsdevelopments.kap.repl.AbstractGenericRepl.loadStdLibrary(repl-builder.kt:300) at com.dhsdevelopments.kap.repl.AbstractGenericRepl.init(repl-builder.kt:187) at com.dhsdevelopments.kap.gui.Client$Companion.engineInit(Client.kt:680) at com.dhsdevelopments.kap.gui.Client$Companion.startGui(Client.kt:659) at com.dhsdevelopments.kap.gui.Client$Companion.main(Client.kt:630) at com.dhsdevelopments.kap.gui.Client.main(Client.kt) kap-jvm-win-20251103-1\gui\bin ❯ java -version openjdk version "21.0.9" 2025年10月21日 LTS OpenJDK Runtime Environment Temurin-21.0.9+10 (build 21.0.9+10-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.9+10 (build 21.0.9+10-LTS, mixed mode, sharing) ```
Owner
Copy link

Is surprising. The error looks very much like wbat you'd be getting if you're using a version of Java greater than 21. Could the JAVA_HOME environment variable be set to a different version compared to what's in the path?

Is surprising. The error looks very much like wbat you'd be getting if you're using a version of Java greater than 21. Could the JAVA_HOME environment variable be set to a different version compared to what's in the path?
Sign in to join this conversation.
No Branch/Tag specified
master
jdk25
tmp-generic-window-management
experiment-assign-to-function-expression
feature-error-highlight
feature-mosaic-ui
feature-sdl
feature-rationalise-reduced
adaptive-experiment
bugfix-linux-charconversions
vector-ops
vector-jvm
sane-reduce
formatter
bitarrays
array-builder
jvm-android-split-new
nested-function-calls-bug
multi-dimensional-string-formatting
ride-impl
codeberg-test
jvm-android-split
libreoffice-module-classloader
optimise-single-element-array
parser-callbacks
new-jline-completion
java-readline
test-tools
int-list-opt
linux-ffi
ffi
isqrt
inter-thread-datatransfer
metadata-highlight
numeric-total-ordering
libreoffice
langbar-javafx
port-mpbignum-to-wasmjs
aesh-test
zero-parser
java21
fxcontrols-spreadsheet-fork
javafx-reporting
new-http
new-optimiser
sixel-renderer
native-input
lambda-scope
custom-renderer
formatter-test
local-functions-fix
kap-rational
bigint2
bigint
reporting
dynamic-assign
structure-viewer2
return-impl
escape-analysis
fork-new-syntax
structural-under
axis-eval
binomial-impl
new-enclose
short-fn-definition
compose-impl
specialised-arrays
ops
domino
clientweb
lcm
gui-experiments
suspend
thread-support
closures_wip
inner-join
maths_axis
keyboard
resultlist3
error-locations
axis-work
No results found.
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
loke/array#34
Reference in a new issue
loke/array
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?