Java Reference
In-Depth Information
files. The actual mapping from the library name to a file name
is system-dependent.
public void load(String filename)
Loads the file specified by filename as a dynamic library. In
contrast with loadLibrary , load allows the library file to be loc-
ated anywhere in the file system.
Typically, classes that have native methods load the corresponding lib-
rary as part of the initialization of the class by placing the load invoc-
ation in a static initialization block. However, the library could be lazily
loaded when an actual invocation of the method occurs.
Loading native code libraries is, naturally, a privileged operation, and
you will get a SecurityException if you do not have the required permis-
sions. If the library cannot be found or if an error occurs while the sys-
tem tries to load the library, an UnsatisfiedLinkError is thrown.
A related method in class SystemmapLibraryName maps a library name into
a system-dependent library name. For example, the library name "awt"
might map to "awt.dll" under Windows, while under UNIX it might map
to "libawt.so" .
23.4.2. Debugging
Two methods in Runtime support the debugging of applications:
public void TRaceInstructions(boolean on)
Enables or disables the tracing of instructions depending on
the value of on . If on is TRue , this method suggests that the vir-
tual machine emit debugging information for each instruction
as it is executed.
public void traceMethodCalls(boolean on)
 
Search WWH ::




Custom Search