Describe the problem
The function get_java_home cannot find the path of JAVA_HOME in linux.
Can you add these lines to detect the java home in linux?
try:
result = subprocess.run(
["bash", "-c", "readlink -f $(which javac) | sed 's:/bin/javac::'"],
capture_output=True,
text=True,
check=True
)
return result.stdout.strip()
except subprocess.CalledProcessError as e:
print(e)
Thanks.
Describe the problem
The function get_java_home cannot find the path of JAVA_HOME in linux.
Can you add these lines to detect the java home in linux?
try: result = subprocess.run( ["bash", "-c", "readlink -f $(which javac) | sed 's:/bin/javac::'"], capture_output=True, text=True, check=True ) return result.stdout.strip()
Thanks.