22#ifndef INCLUDED_JVMFWK_FRAMEWORK_HXX
23#define INCLUDED_JVMFWK_FRAMEWORK_HXX
31#include <rtl/byteseq.hxx>
32#include <rtl/ustring.hxx>
34#pragma clang diagnostic push
35#pragma clang diagnostic ignored "-Wunknown-attributes"
39#pragma clang diagnostic pop
174#define JFW_REQUIRE_NEEDRESTART 0x1l
388 std::unique_ptr<JavaInfo>* ppInfo);
451 std::vector<OUString>
const& arOptions,
452 JavaVM** ppVM, JNIEnv** ppEnv);
JVMFWK_DLLPUBLIC javaFrameworkError jfw_getSelectedJRE(std::unique_ptr< JavaInfo > *ppInfo)
provides information about the JRE that is to be used.
JVMFWK_DLLPUBLIC bool jfw_isVMRunning()
determines if a Java Virtual Machine is already running.
JVMFWK_DLLPUBLIC void jfw_unlock()
unlocks this API.
JVMFWK_DLLPUBLIC javaFrameworkError jfw_setEnabled(bool bEnabled)
determines if Java can be used.
JVMFWK_DLLPUBLIC javaFrameworkError jfw_getJavaInfoByPath(OUString const &pPath, std::unique_ptr< JavaInfo > *ppInfo)
determines if a path points to a Java installation.
JVMFWK_DLLPUBLIC javaFrameworkError jfw_getEnabled(bool *pbEnabled)
provides the information if Java can be used.
JVMFWK_DLLPUBLIC javaFrameworkError jfw_existJRE(const JavaInfo *pInfo, bool *exist)
checks if the installation of the jre still exists.
JVMFWK_DLLPUBLIC javaFrameworkError jfw_findAndSelectJRE(std::unique_ptr< JavaInfo > *pInfo)
detects a suitable JRE and configures the framework to use it.
JVMFWK_DLLPUBLIC javaFrameworkError jfw_findAllJREs(std::vector< std::unique_ptr< JavaInfo > > *parInfo)
provides information about all available JRE installations.
JVMFWK_DLLPUBLIC javaFrameworkError jfw_setUserClassPath(OUString const &pCP)
sets the user class path.
JVMFWK_DLLPUBLIC bool jfw_areEqualJavaInfo(JavaInfo const *pInfoA, JavaInfo const *pInfoB)
compares two JavaInfo objects for equality.
JVMFWK_DLLPUBLIC std::vector< OUString > jfw_convertUserPathList(OUString const &sUserPath)
Convert colon-separated userClassPath which might contain bootstrap variables (which also might conta...
JVMFWK_DLLPUBLIC void jfw_lock()
locks this API so that it cannot be used by other threads.
JVMFWK_DLLPUBLIC javaFrameworkError jfw_addJRELocation(OUString const &sLocation)
saves the location of a JRE.
JVMFWK_DLLPUBLIC javaFrameworkError jfw_setVMParameters(std::vector< OUString > const &arArgs)
determines parameters which are passed to VM during its creation.
javaFrameworkError
error codes which are returned by functions of this API.
@ JFW_E_VM_CREATION_FAILED
JVMFWK_DLLPUBLIC javaFrameworkError jfw_startVM(JavaInfo const *pInfo, std::vector< OUString > const &arOptions, JavaVM **ppVM, JNIEnv **ppEnv)
starts a Java Virtual Machine (JVM).
JVMFWK_DLLPUBLIC javaFrameworkError jfw_getUserClassPath(OUString *ppCP)
provides the value of the current user class path.
JVMFWK_DLLPUBLIC javaFrameworkError jfw_getVMParameters(std::vector< OUString > *parParameters)
obtains the currently used start parameters.
JVMFWK_DLLPUBLIC javaFrameworkError jfw_setSelectedJRE(JavaInfo const *pInfo)
determines the JRE that is to be used.
an instance of this struct represents an installation of a Java Runtime Environment (JRE).
OUString sVersion
contains the version of this Java distribution.
sal_uInt64 nRequirements
indicates requirements for running the java runtime.
OUString sLocation
contains the file URL to the installation directory.
OUString sVendor
contains the vendor.
rtl::ByteSequence arVendorData
contains data needed for the creation of the java runtime.