com.moesol.bindings
Class NativeLibraryLoader

java.lang.Object
  extended by com.moesol.bindings.NativeLibraryLoader

public class NativeLibraryLoader
extends Object

Load native libraries using a flexible search.


Constructor Summary
NativeLibraryLoader()
           
 
Method Summary
static void loadLibrary(String name)
          Calls System.loadLibrary and if that fails, uses Preferences to try to find the full path to the library.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeLibraryLoader

public NativeLibraryLoader()
Method Detail

loadLibrary

public static void loadLibrary(String name)
Calls System.loadLibrary and if that fails, uses Preferences to try to find the full path to the library. If that fails it uses DeveloperProperties to try to find the full path to the library. The preference tree com/moesol/bindings/NativeLibraryLoader is checked for name + ".library.path". The DeveloperProperties is checked for name + ".library.path". In both cases the value should be the directory that contains the library.

Parameters:
name - The library to load.


Copyright © 2004 Moebius Solutions, Inc. All Rights Reserved.