Lines Matching refs:path

177 static jboolean GetJREPath(char *path, jint pathsize, char * arch, jboolean speculative);
238 char* newpath = NULL; /* path on new LD_LIBRARY_PATH */
344 /* exec child can do error checking on the existence of the path */
382 * The vm uses LD_LIBRARY_PATH to set the java.library.path system
442 * linker does apply more scrutiny to the path.) The launcher uses
458 * linker does apply more scrutiny to the path.) The launcher uses
483 /* remove the name of the .so from the JVM path */
507 * Check to make sure that the prefix of the current path is the
561 * If the data model is being changed, the path to the
624 * all we need to do here is to return correct path names. See also
696 * Find path to JRE based on .exe's location or registry settings.
699 GetJREPath(char *path, jint pathsize, char * arch, jboolean speculative)
703 if (GetApplicationHome(path, pathsize)) {
706 sprintf(libjava, "%s/jre/lib/" JAVA_DLL, path);
708 strcat(path, "/jre");
713 sprintf(libjava, "%s/lib/%s/" JAVA_DLL, path, arch);
719 sprintf(libjava, "%s/jre/lib/%s/" JAVA_DLL, path, arch);
721 strcat(path, "/jre");
732 printf("JRE path is %s\n", path);
749 printf("JVM path is %s\n", jvmpath);
891 * Find a command in a directory, returning the path.
909 * Find a path for the executable
915 char *path;
920 /* absolute path? */
925 /* relative path? */
931 /* from search path? */
932 path = getenv("PATH");
933 if (!path || !*path) path = ".";
934 tmp_path = JLI_MemAlloc(strlen(path) + 2);
935 strcpy(tmp_path, path);
944 /* relative path element */
964 * In order to re-exec securely we need the absolute path of the
966 * path so we use dladdr to get the filename of the executable and
967 * then use realpath to derive an absolute path. From Solaris 9
1552 * executable object at bin/java relative to the path being checked
1556 CheckSanity(char *path, char *dir)
1560 if (strlen(path) + strlen(dir) + 11 > PATH_MAX)
1563 (void)strcat(strcat(strcat(strcpy(buffer, path), "/"), dir), "/bin/java");
1569 * Upon locating the "best" one, return a fully qualified path to
1645 char *path;
1655 path = JLI_StringDup(system_dir);
1656 else if ((path = getenv("JAVA_VERSION_PATH")) != NULL)
1657 path = JLI_StringDup(path);
1660 path = (char *)JLI_MemAlloc(strlen(home) + strlen(system_dir) +
1662 path = strcat(strcat(strcat(strcpy(path, home),
1665 path = JLI_StringDup(system_dir);
1668 * Step through each directory on the path. Terminate the scan with
1671 cp = dp = path;
1682 JLI_MemFree(path);
1687 * Given a path to a jre to execute, this routine checks if this process
1703 * Resolve the real path to the directory containing the selected JRE.
1711 * Resolve the real path to the currently running launcher.
1720 * If the path to the selected JRE directory is a match to the initial
1721 * portion of the path to the currently executing JRE, we have a winner!
1745 * but check for "impossibly" long path names just because buffer overruns
1754 * Construct the path and exec it.