private static void InternalTryLoadLibrary() { try { //System.Console.WriteLine("InternalTryLoadLibrary"); var p = __PlatformInvocationServices.Func.GetCodeSourceLocation(); //System.Console.WriteLine("p: " + p); var lib = Path.Combine(Path.GetDirectoryName(p), CPtrLibrary.LibraryPath); var IsLibMissing = !File.Exists(lib); var IsExtExports = p.EndsWith(".exports"); var value = IsLibMissing; if (!IsExtExports) { value = false; } if (value) { JavaSystem.load(p); } else { JavaSystem.loadLibrary(CPtrLibrary.LibraryPath); } } catch //(csharp.ThrowableException ex) { //System.Console.WriteLine("InternalTryLoadLibrary error"); //((Throwable)(object)ex).printStackTrace(); InternalTryLoadLibraryAtHint(); } }