JavaInfo#

class pyopenms.JavaInfo#

Bases: object

Detect Java and retrieve information

__init__() → None#
__init__(arg: pyopenms.JavaInfo, /) → None

Methods

__init__()

canRun(java_executable[, verbose_on_error])

Determine if Java is installed and reachable

static canRun(java_executable: str, verbose_on_error: bool = True) → 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