ninia / jep

Embed Python in Java
Other
1.3k stars 147 forks source link

get_java_home cannot find java home #545

Open hahn80 opened 1 month ago

hahn80 commented 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.

ndjensen commented 1 month ago

Please submit a pull request.

hahn80 commented 1 month ago

I just made a request. Thank you.

ndjensen commented 2 days ago

The pull request was #546.