Bug: kernel does not work with java 17
padreati opened this issue · 1 comments
padreati commented
The installer works but the generated does not run. The error message is:
Error occurred during initialization of boot layer
java.lang.module.FindException: Module jdk.incubator.concurrent not found
padreati commented
The problem is caused by the included options in the kernel.json file:
Installing in automatic mode.
Installation path: /home/ANT.AMAZON.COM/tutuianu/.local/share/jupyter/kernels
Kernel dir: rapaio-jupyter-kernel
kernel.json:
{
"argv": [
"java",
"--enable-preview",
"--add-modules",
"jdk.incubator.vector,jdk.incubator.concurrent",
"-jar",
"/home/ANT.AMAZON.COM/tutuianu/.local/share/jupyter/kernels/rapaio-jupyter-kernel/rapaio-jupyter-kernel-1.0.1.jar",
"{connection_file}"
],
"display_name": "Rapaio Kernel",
"language": "java",
"interrupt_mode": "message",
"env": {
"RJK_COMPILER_OPTIONS": "",
"RJK_INIT_SCRIPT": "",
"RJK_TIMEOUT_MILLIS": "-1"
}
}
This is caused by adding incubator modules. The jdk.incubator.concurrent
is not available in version 17.
The fix is to remove incubator modules in the default installation.
A next issue will offer possibility to add modules depending on java version or another more wise solution.