jdk/src/share/classes/java/lang/Runtime.java
synchronized void loadLibrary0(Class fromClass, String libname) {
{- -------------------------------------------
(1) もし security manager がいれば, SecurityManager.checkLink() でチェックを行う.
(チェックが失敗した場合は SecurityException が出る)
---------------------------------------- -}
SecurityManager security = System.getSecurityManager();
if (security != null) {
security.checkLink(libname);
}
{- -------------------------------------------
(1) もし引数で渡されたライブラリ名が Directory separator を含んだ文字列であれば, UnsatisfiedLinkError
---------------------------------------- -}
if (libname.indexOf((int)File.separatorChar) != -1) {
throw new UnsatisfiedLinkError(
"Directory separator should not appear in library name: " + libname);
}
{- -------------------------------------------
(1) ClassLoader.loadLibrary() でロード処理を行う.
---------------------------------------- -}
ClassLoader.loadLibrary(fromClass, libname, false);
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.