Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4145531

Browse files
committedJun 29, 2021
Prefer KOTLIN_JUPYTER_JAVA_HOME over JAVA_HOME
1 parent 8bfa07d commit 4145531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎distrib/run_kotlin_kernel/run_kernel.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def run_kernel_impl(connection_file: str, jar_args_file: str = None, executables
3939
class_path_arg = os.pathsep.join([os.path.join(jars_dir, jar_name) for jar_name in cp])
4040
main_jar_path = os.path.join(jars_dir, main_jar)
4141

42-
java_home = os.getenv("JAVA_HOME")
42+
java_home = os.getenv("KOTLIN_JUPYTER_JAVA_HOME") or os.getenv("JAVA_HOME")
4343

4444
if java_home is None:
4545
java = "java"

0 commit comments

Comments
 (0)
Please sign in to comment.