Lines Matching refs:path

48 static jboolean GetPublicJREHome(char *path, jint pathsize);
51 static jboolean GetJREPath(char *path, jint pathsize);
152 * Returns the arch path, to get the current arch use the
261 * assumed to be present in the "JRE path" directory. If it is not found
262 * there (or "JRE path" fails to resolve), skip the explicit load and let
284 JLI_TraceLauncher("CRT path is %s\n", crtpath);
301 * Find path to JRE based on .exe's location or registry settings.
304 GetJREPath(char *path, jint pathsize)
309 if (GetApplicationHome(path, pathsize)) {
311 JLI_Snprintf(javadll, sizeof(javadll), "%s\\bin\\" JAVA_DLL, path);
313 JLI_TraceLauncher("JRE path is %s\n", path);
318 JLI_Snprintf(javadll, sizeof (javadll), "%s\\jre\\bin\\" JAVA_DLL, path);
320 JLI_StrCat(path, "\\jre");
321 JLI_TraceLauncher("JRE path is %s\n", path);
327 if (GetPublicJREHome(path, pathsize)) {
328 JLI_TraceLauncher("JRE path is %s\n", path);
368 JLI_TraceLauncher("JVM path is %s\n", jvmpath);
372 * assumed to be present in the "JRE path" directory. If it is not found
373 * there (or "JRE path" fails to resolve), skip the explicit load and let
674 * Upon locating the "best" one, return a fully qualified path to it.
707 * that path. If no appropriate version was located, or there is an
746 char *path;
753 if ((path = ProcessDir(info, key)) != NULL) {
756 return (path);
905 * Given a path to a jre to execute, this routine checks if this process
916 char path[MAXPATHLEN + 1];
921 * Resolve the real path to the currently running launcher.
923 len = GetModuleFileName(NULL, path, MAXPATHLEN + 1);
929 JLI_TraceLauncher("ExecJRE: old: %s\n", path);
933 * If the path to the selected JRE directory is a match to the initial
934 * portion of the path to the currently executing JRE, we have a winner!
937 if (JLI_StrNCaseCmp(jre, path, JLI_StrLen(jre)) == 0)
943 JLI_Snprintf(path, sizeof(path), "%s\\bin\\%s.exe", jre, progname);
956 * execv(path, argv);
957 * JLI_ReportErrorMessage("Error: Exec of %s failed\n", path);
962 * exit((int)spawnv(_P_WAIT, path, argv));
991 * the path to the new executable and removing the appropriate
997 * 2 possible quotes around the path (argv[0]), a space after the
998 * path and a terminating null character.
1003 cmdline = (char *)JLI_MemAlloc(JLI_StrLen(path) + JLI_StrLen(np) + 4);
1004 if (JLI_StrChr(path, (int)' ') == NULL && JLI_StrChr(path, (int)'\t') == NULL)
1005 cmdline = JLI_StrCpy(cmdline, path);
1007 cmdline = JLI_StrCat(JLI_StrCat(JLI_StrCpy(cmdline, "\""), path), "\"");
1039 printf("ReExec Command: %s (%s)\n", path, p);
1057 if (!CreateProcess((LPCTSTR)path, /* executable name */
1067 JLI_ReportErrorMessageSys(SYS_ERROR1, path);
1301 /* save path length */