Lines Matching defs:libjava
276 char *libjava = NULL;
278 libjava = (char *)MemAlloc(strlen(path) + strlen(JAVA_DLL) + 11);
281 sprintf(libjava, "%s" FILE_SEPARATOR "bin" FILE_SEPARATOR JAVA_DLL, path);
282 if (access(libjava, R_OK) == 0)
284 strcpy(libjava, path);
289 sprintf(libjava, "%s" FILE_SEPARATOR "jre" FILE_SEPARATOR "bin" FILE_SEPARATOR JAVA_DLL, path);
290 if (access(libjava, R_OK) == 0)
292 sprintf(libjava, "%s" FILE_SEPARATOR "jre", path);
296 if (libjava)
297 free(libjava);
298 libjava = NULL;
301 if (libjava)
308 java = (char *)MemAlloc(strlen(libjava) + strlen(JAVA_EXE) + 1);
309 javaw = (char *)MemAlloc(strlen(libjava) + strlen(JAVAW_EXE) + 1);
310 keytool = (char *)MemAlloc(strlen(libjava) + strlen(KEYTOOL_EXE) + 1);
311 sprintf(java, "%s" JAVA_EXE, libjava);
312 sprintf(javaw, "%s" JAVAW_EXE, libjava);
313 sprintf(keytool, "%s" KEYTOOL_EXE, libjava);
316 free(libjava);
317 libjava = NULL;
326 return libjava;