native loading modified to be in line with oal

This commit is contained in:
Brian Matzon 2004-09-19 11:17:28 +00:00
parent 4e81b3a458
commit e93393ef8a
5 changed files with 54 additions and 19 deletions

View file

@ -146,6 +146,7 @@ public final class AL {
}
String jwsPath = getPathFromJWS(jwsLibname);
Sys.log("getPathFromJWS: Paths found: " + jwsPath);
if (jwsPath != null) {
libpath += seperator
+ jwsPath.substring(0, jwsPath.lastIndexOf(File.separator));
@ -160,6 +161,10 @@ public final class AL {
for (int i = 0; i < oalPaths.length - 1; i++) {
oalPaths[i] = st.nextToken() + File.separator;
}
for(int i=0 ; i<oalPaths.length; i++) {
Sys.log("Will search " + oalPaths[i] + " for " + jwsLibname);
}
//add cwd path
oalPaths[oalPaths.length - 1] = "";
@ -238,9 +243,7 @@ public final class AL {
*/
private static String getPathFromJWS(String libname) {
try {
Sys.log("JWS Classloader looking for: " + libname);
Sys.log("getPathFromJWS: searching for: " + libname);
Object o = AL.class.getClassLoader();
Class c = o.getClass();
Method findLibrary =