From cf91bc5c30528d1610bc567bd4c9aeb6873d15c7 Mon Sep 17 00:00:00 2001 From: Ziheng Sun Date: Sun, 4 Jun 2023 23:55:41 -0400 Subject: [PATCH] Update jdk_utils.py --- pygeoweaver/jdk_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygeoweaver/jdk_utils.py b/pygeoweaver/jdk_utils.py index a172ba2..a4f8c36 100644 --- a/pygeoweaver/jdk_utils.py +++ b/pygeoweaver/jdk_utils.py @@ -124,7 +124,7 @@ def set_jdk_env_vars(jdk_install_dir): if not check_java: with open(os.path.expanduser("~/.bashrc"), "a") as bashrc: - bashrc.write() + bashrc.write(f'\nexport JAVA_HOME="{jdk_install_dir}"\n') bashrc.write(f'export PATH="$JAVA_HOME/bin:$PATH"\n') print('JDK environment variables set.')