Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_java_home cannot find java home #545

Open
hahn80 opened this issue Jul 26, 2024 · 3 comments
Open

get_java_home cannot find java home #545

hahn80 opened this issue Jul 26, 2024 · 3 comments

Comments

@hahn80
Copy link
Contributor

hahn80 commented Jul 26, 2024

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
Copy link
Member

Please submit a pull request.

@hahn80
Copy link
Contributor Author

hahn80 commented Jul 26, 2024

I just made a request.
Thank you.

@ndjensen
Copy link
Member

ndjensen commented Sep 5, 2024

The pull request was #546.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants