Open hahn80 opened 1 month ago
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.
Please submit a pull request.
I just made a request. Thank you.
The pull request was #546.
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.