Top


定義場所(file name)

jdk/src/share/classes/java/lang/Runtime.java

名前(function name)

    synchronized void loadLibrary0(Class fromClass, String libname) {

本体部(body)

  {- -------------------------------------------
  (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.