std::string BuildClassPath() { std::string classpathLibs = LoadStdString(IDS_CLASSPATH_LIBS); std::string result = CollectLibJars(classpathLibs); std::string toolsJar = FindToolsJar(); if (toolsJar.size() > 0) { result += ";"; result += toolsJar; } return result; }
bool AddClassPathOptions(std::vector<std::string>& vmOptionLines) { std::string classPath = BuildClassPath(); if (classPath.size() == 0) return false; vmOptionLines.push_back(std::string("-Djava.class.path=") + classPath); std::string bootClassPathLibs = LoadStdString(IDS_BOOTCLASSPATH_LIBS); std::string bootClassPath = CollectLibJars(bootClassPathLibs); if (bootClassPath.size() > 0) { vmOptionLines.push_back(std::string("-Xbootclasspath/a:") + bootClassPath); } return true; }
std::string BuildClassPath() { std::string classpathLibs = LoadStdString(IDS_CLASSPATH_LIBS); std::string result = CollectLibJars(classpathLibs); return result; }