Lines Matching refs:path

48 static jboolean GetPublicJREHome(char *path, jint pathsize);
51 static jboolean GetJREPath(char *path, jint pathsize);
204 * all we need to do here is to return correct path names. See also
241 * assumed to be present in the "JRE path" directory. If it is not found
242 * there (or "JRE path" fails to resolve), skip the explicit load and let
248 printf("CRT path is %s\n", crtpath);
344 * Find path to JRE based on .exe's location or registry settings.
347 GetJREPath(char *path, jint pathsize)
352 if (GetApplicationHome(path, pathsize)) {
354 sprintf(javadll, "%s\\bin\\" JAVA_DLL, path);
360 sprintf(javadll, "%s\\jre\\bin\\" JAVA_DLL, path);
362 strcat(path, "\\jre");
369 if (GetPublicJREHome(path, pathsize)) {
379 printf("JRE path is %s\n", path);
442 printf("JVM path is %s\n", jvmpath);
498 char path[MAXPATHLEN + 1];
503 // find the path to the currect executable
504 len = GetModuleFileName(NULL, path, MAXPATHLEN + 1);
509 // remove last path component ("hotspot.exe")
510 p = strrchr(path, '\\');
518 if (strlen(path) + strlen("\\jdkpath.txt") + 1 >= MAXPATHLEN) {
519 printf("Path too long: %s\n", path);
522 strcat(path, "\\jdkpath.txt");
523 fp = fopen(path, "r");
525 printf("Could not open file %s to get path to JDK.\n", path);
530 printf("Could not read from file %s to get path to JDK.\n", path);
837 * Upon locating the "best" one, return a fully qualified path to it.
870 * that path. If no appropriate version was located, or there is an
909 char *path;
916 if ((path = ProcessDir(info, key)) != NULL) {
919 return (path);
1069 * Given a path to a jre to execute, this routine checks if this process
1081 char path[MAXPATHLEN + 1];
1103 * Resolve the real path to the currently running launcher.
1105 len = GetModuleFileName(NULL, path, MAXPATHLEN + 1);
1108 "Unable to resolve path to current %s executable: %s",
1114 printf("ExecJRE: old: %s\n", path);
1119 * If the path to the selected JRE directory is a match to the initial
1120 * portion of the path to the currently executing JRE, we have a winner!
1123 if (strnicmp(jre, path, strlen(jre)) == 0)
1129 (void)strcat(strcat(strcpy(path, jre), "\\bin\\"), progname);
1130 (void)strcat(path, ".exe");
1143 * execv(path, argv);
1144 * ReportErrorMessage2("Exec of %s failed\n", path, JNI_TRUE);
1149 * exit((int)spawnv(_P_WAIT, path, argv));
1178 * the path to the new executable and removing the appropriate
1184 * 2 possible quotes around the path (argv[0]), a space after the
1185 * path and a terminating null character.
1190 cmdline = (char *)JLI_MemAlloc(strlen(path) + strlen(np) + 4);
1191 if (strchr(path, (int)' ') == NULL && strchr(path, (int)'\t') == NULL)
1192 cmdline = strcpy(cmdline, path);
1194 cmdline = strcat(strcat(strcpy(cmdline, "\""), path), "\"");
1226 printf("ReExec Command: %s (%s)\n", path, p);
1244 if (!CreateProcess((LPCTSTR)path, /* executable name */
1255 path, JNI_TRUE);
1452 // save path length