JavaInfo#

class pyopenms.JavaInfo#

Bases: object

Cython implementation of _JavaInfo

Original C++ documentation is available here

__init__()#

Overload:

__init__(self) None

Detect Java and retrieve information

Overload:

__init__(self, in_0: JavaInfo) None

Methods

__init__

Overload:

canRun(self, java_executable)

Determine if Java is installed and reachable

canRun(self, java_executable: bytes | str | String) bool#

Determine if Java is installed and reachable

The call fails if either Java is not installed or if a relative location is given and Java is not on the search PATH

Parameters:

java_executable – Path to Java executable. Can be absolute, relative or just a filename

Returns:

Returns false if Java executable can not be called; true if Java executable can be executed