Skip to content

get_java_home cannot find java home #545

@hahn80

Description

@hahn80

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions