MCPcopy Create free account
hub / github.com/alibaba/GraphScope / find_java_exe

Function find_java_exe

python/graphscope/framework/utils.py:204–212  ·  view source on GitHub ↗
(exe_name="java")

Source from the content-addressed store, hash-verified

202# If JAVA_HOME is set, use that,
203# otherwise use the executable on the PATH.
204def find_java_exe(exe_name="java"):
205 exe = None
206 if "JAVA_HOME" in os.environ:
207 exe = os.path.expandvars(f"$JAVA_HOME/bin/{exe_name}")
208 if exe is None:
209 exe = shutil.which(exe_name)
210 if exe is None:
211 raise RuntimeError(f"{exe_name} command not found.")
212 return exe
213
214
215def get_java_version():

Callers 3

_parse_java_app_typeFunction · 0.90
get_java_versionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected