java.lang.Runtime.loadLibrary()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(6.8k)|赞(0)|评价(0)|浏览(183)

本文整理了Java中java.lang.Runtime.loadLibrary()方法的一些代码示例,展示了Runtime.loadLibrary()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Runtime.loadLibrary()方法的具体详情如下:
包路径:java.lang.Runtime
类名称:Runtime
方法名:loadLibrary

Runtime.loadLibrary介绍

[英]Loads and links the library with the specified name. The mapping of the specified library name to the full path for loading the library is implementation-dependent.
[中]加载并链接具有指定名称的库。指定库名称到加载库的完整路径的映射取决于实现。

代码示例

代码示例来源:origin: robovm/robovm

/**
 * Loads and links the library with the specified name. The mapping of the
 * specified library name to the full path for loading the library is
 * implementation-dependent.
 *
 * @param libName
 *            the name of the library to load.
 * @throws UnsatisfiedLinkError
 *             if the library could not be loaded.
 */
public static void loadLibrary(String libName) {
  Runtime.getRuntime().loadLibrary(libName, VMStack.getCallingClassLoader());
}

代码示例来源:origin: robovm/robovm

/**
 * Loads and links the library with the specified name. The mapping of the
 * specified library name to the full path for loading the library is
 * implementation-dependent.
 *
 * @param libName
 *            the name of the library to load.
 * @throws UnsatisfiedLinkError
 *             if the library can not be loaded.
 */
public void loadLibrary(String libName) {
  loadLibrary(libName, VMStack.getCallingClassLoader());
}

代码示例来源:origin: EvoSuite/evosuite

public static void loadLibrary(Runtime runtime, String libname) {
  //loadLibrary0(Reflection.getCallerClass(), libname);
  runtime.loadLibrary(libname); // we need to load the actuall stuff
}

代码示例来源:origin: stackoverflow.com

Runtime.loadLibrary("taglib_module");
Runtime.loadLibrary("my_own_shared_lib");

代码示例来源:origin: stackoverflow.com

Caused by: java.lang.UnsatisfiedLinkError: Library DropboxSync not found
 at java.lang.Runtime.loadLibrary(Runtime.java:489)
 at java.lang.System.loadLibrary(System.java:557)
 at com.dropbox.sync.android.NativeHttp.<clinit>(NativeHttp.java:411)
 ... 20 more

代码示例来源:origin: com.jtransc/jtransc-rt

public static void loadLibrary(String libname) {
  Runtime.getRuntime().loadLibrary(libname);
}

代码示例来源:origin: stackoverflow.com

Caused by: java.lang.UnsatisfiedLinkError: Couldnt load lept: findLibrary returned null
 at java.lang.Runtime.loadLibrary(Runtime.java:365)
 at java.lang.System.loadLibrary(System.java:535)
 [...]

代码示例来源:origin: ibinti/bugvm

/**
 * Loads and links the library with the specified name. The mapping of the
 * specified library name to the full path for loading the library is
 * implementation-dependent.
 *
 * @param libName
 *            the name of the library to load.
 * @throws UnsatisfiedLinkError
 *             if the library can not be loaded.
 */
public void loadLibrary(String libName) {
  loadLibrary(libName, VMStack.getCallingClassLoader());
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * Loads and links the library with the specified name. The mapping of the
 * specified library name to the full path for loading the library is
 * implementation-dependent.
 *
 * @param libName
 *            the name of the library to load.
 * @throws UnsatisfiedLinkError
 *             if the library can not be loaded.
 */
public void loadLibrary(String libName) {
  loadLibrary(libName, VMStack.getCallingClassLoader());
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * Loads and links the library with the specified name. The mapping of the
 * specified library name to the full path for loading the library is
 * implementation-dependent.
 *
 * @param libName
 *            the name of the library to load.
 * @throws UnsatisfiedLinkError
 *             if the library could not be loaded.
 */
public static void loadLibrary(String libName) {
  Runtime.getRuntime().loadLibrary(libName, VMStack.getCallingClassLoader());
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * Loads and links the library with the specified name. The mapping of the
 * specified library name to the full path for loading the library is
 * implementation-dependent.
 *
 * @param libName
 *            the name of the library to load.
 * @throws UnsatisfiedLinkError
 *             if the library can not be loaded.
 */
public void loadLibrary(String libName) {
  loadLibrary(libName, VMStack.getCallingClassLoader());
}

代码示例来源:origin: com.oracle.substratevm/svm

@Substitute
public static void loadLibrary(String libname) {
  // Substituted because the original is caller-sensitive, which we don't support
  Runtime.getRuntime().loadLibrary(libname);
}

代码示例来源:origin: MobiVM/robovm

/**
 * Loads and links the library with the specified name. The mapping of the
 * specified library name to the full path for loading the library is
 * implementation-dependent.
 *
 * @param libName
 *            the name of the library to load.
 * @throws UnsatisfiedLinkError
 *             if the library can not be loaded.
 */
public void loadLibrary(String libName) {
  loadLibrary(libName, VMStack.getCallingClassLoader());
}

代码示例来源:origin: MobiVM/robovm

/**
 * Loads and links the library with the specified name. The mapping of the
 * specified library name to the full path for loading the library is
 * implementation-dependent.
 *
 * @param libName
 *            the name of the library to load.
 * @throws UnsatisfiedLinkError
 *             if the library could not be loaded.
 */
public static void loadLibrary(String libName) {
  Runtime.getRuntime().loadLibrary(libName, VMStack.getCallingClassLoader());
}

代码示例来源:origin: ibinti/bugvm

/**
 * Loads and links the library with the specified name. The mapping of the
 * specified library name to the full path for loading the library is
 * implementation-dependent.
 *
 * @param libName
 *            the name of the library to load.
 * @throws UnsatisfiedLinkError
 *             if the library could not be loaded.
 */
public static void loadLibrary(String libName) {
  Runtime.getRuntime().loadLibrary(libName, VMStack.getCallingClassLoader());
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * Loads and links the library with the specified name. The mapping of the
 * specified library name to the full path for loading the library is
 * implementation-dependent.
 *
 * @param libName
 *            the name of the library to load.
 * @throws UnsatisfiedLinkError
 *             if the library could not be loaded.
 */
public static void loadLibrary(String libName) {
  Runtime.getRuntime().loadLibrary(libName, VMStack.getCallingClassLoader());
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * Loads and links the library with the specified name. The mapping of the
 * specified library name to the full path for loading the library is
 * implementation-dependent.
 *
 * @param libName
 *            the name of the library to load.
 * @throws UnsatisfiedLinkError
 *             if the library can not be loaded.
 */
public void loadLibrary(String libName) {
  loadLibrary(libName, VMStack.getCallingClassLoader());
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * Loads and links the library with the specified name. The mapping of the
 * specified library name to the full path for loading the library is
 * implementation-dependent.
 *
 * @param libName
 *            the name of the library to load.
 * @throws UnsatisfiedLinkError
 *             if the library could not be loaded.
 */
public static void loadLibrary(String libName) {
  Runtime.getRuntime().loadLibrary(libName, VMStack.getCallingClassLoader());
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * Loads and links the library with the specified name. The mapping of the
 * specified library name to the full path for loading the library is
 * implementation-dependent.
 *
 * @param libName
 *            the name of the library to load.
 * @throws UnsatisfiedLinkError
 *             if the library can not be loaded.
 */
public void loadLibrary(String libName) {
  loadLibrary(libName, VMStack.getCallingClassLoader());
}

代码示例来源:origin: org.meteogroup.jbrotli/jbrotli

boolean trySystemLibraryLoading() {
 try {
  Runtime.getRuntime().loadLibrary(libName);
  loaderResult.setLoadedFromSystemLibraryPath(true);
  return true;
 } catch (UnsatisfiedLinkError e) {
  loaderResult.setLoadedFromSystemLibraryPath(false);
 }
 return false;
}

相关文章