#define HELP_TEXT \ "\njavaldx is necessary to make Java work on some UNIX platforms." \ "It prints a string to std out that consists of directories which " \ "have to be included into the LD_LIBRARY_PATH variable.The setting of " \ "the variable usually occurs in a shell script that runs javaldx.\n" \ "The directories are from the chosen java installation. \n" \ "Options are: \n"\ "--help or -h\n"
SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
{ try
{ if( hasOption("--help",argc, argv) || hasOption("-h", argc, argv))
{
fprintf(stdout, HELP_TEXT);// default return0;
} bool bEnabled = false;
javaFrameworkError errcode = jfw_getEnabled( & bEnabled); if (errcode == JFW_E_NONE && !bEnabled)
{ //Do not do any preparation because that may only slow startup time.
fprintf(stdout, "\n"); return0;
} elseif (errcode != JFW_E_NONE && errcode != JFW_E_DIRECT_MODE)
{
SAL_WARN("jvmfwk.javaenvsetup", "javaldx failed!"); return -1;
}
if (!aInfo)
{ if (!findAndSelect(&aInfo)) return -1;
} else
{ //check if the JRE was not uninstalled bool bExist = false;
errcode = jfw_existJRE(aInfo.get(), &bExist); if (errcode == JFW_E_NONE)
{ if (!bExist && !findAndSelect(&aInfo)) return -1;
} else
{
SAL_WARN("jvmfwk.javaenvsetup", "javaldx: Could not determine if JRE still exist"); return -1;
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.