Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Static Public Member Functions | List of all members
JavaInfo Class Reference

Detect Java and retrieve information. More...

#include <OpenMS/SYSTEM/JavaInfo.h>

Static Public Member Functions

static bool canRun (const String &java_executable, bool verbose_on_error=true)
 Determine if Java is installed and reachable. More...
 

Detailed Description

Detect Java and retrieve information.

Member Function Documentation

◆ canRun()

static bool canRun ( const String java_executable,
bool  verbose_on_error = true 
)
static

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_executablePath to Java executable. Can be absolute, relative or just a filename
verboseOn error, should an error message be printed to LOG_ERROR?
Returns
Returns false if Java executable can not be called; true if Java executable can be executed

OpenMS / TOPP release 2.3.0 Documentation generated on Tue Jan 9 2018 18:22:09 using doxygen 1.8.13