Lines Matching refs:libjava
50 #define JAVA_DLL "libjava.so"
313 char *libjava;
316 libjava = (char *)MemAlloc(strlen(path) + strlen(arch) + 1 + strlen(JAVA_DLL) + 11);
319 sprintf(libjava, "%s" FILE_SEPARATOR "lib" FILE_SEPARATOR "%s" FILE_SEPARATOR JAVA_DLL, path, arch);
321 if (access(libjava, F_OK) == 0)
323 strcpy(libjava, path);
328 memset(libjava,0,strlen(path) + strlen(arch) + strlen(JAVA_DLL) + 11);
329 sprintf(libjava, "%s" FILE_SEPARATOR "jre" FILE_SEPARATOR "lib" FILE_SEPARATOR "%s" FILE_SEPARATOR JAVA_DLL, path, arch);
330 if (access(libjava, F_OK) == 0)
332 sprintf(libjava, "%s" FILE_SEPARATOR "jre", path);
338 memset(libjava,0,strlen(path) + strlen(arch) + 1 + strlen(JAVA_DLL) + 11);
339 sprintf(libjava, "%s" FILE_SEPARATOR "jre" FILE_SEPARATOR "lib" FILE_SEPARATOR "%s" FILE_SEPARATOR JAVA_DLL, path, X64);
340 if (access(libjava, F_OK) == 0)
342 sprintf(libjava, "%s" FILE_SEPARATOR "jre", path);
347 free(libjava);
356 java = (char *)MemAlloc(strlen(libjava) + strlen(JAVA_EXE) + 1);
357 javaw = (char *)MemAlloc(strlen(libjava) + strlen(JAVAW_EXE) + 1);
358 sprintf(java, "%s" JAVA_EXE, libjava);
359 sprintf(javaw, "%s" JAVAW_EXE, libjava);
362 libjava = NULL;
369 return libjava;