com.sun.jna.Native.getWebStartLibraryPath()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(260)

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

Native.getWebStartLibraryPath介绍

[英]If running web start, determine the location of a given native library. This value may be used to properly set jna.library.path so that JNA can load libraries identified by the <nativelib> tag in the JNLP configuration file. Returns null if the Web Start native library cache location can not be determined.

Use System.getProperty("javawebstart.version") to detect whether your code is running under Web Start.
[中]如果运行web start,请确定给定本机库的位置。此值可用于正确设置jna.library.path,以便JNA可以加载JNLP配置文件中的<nativelib>标记标识的库。如果无法确定Web Start本机库缓存位置,则返回null
使用System.getProperty("javawebstart.version")检测代码是否在Web Start下运行。

代码示例

代码示例来源:origin: net.java.dev.jna/jna

String webstartPath = Native.getWebStartLibraryPath(libraryName);
if (webstartPath != null) {
  LOG.log(DEBUG_LOAD_LEVEL, "Adding web start path " + webstartPath);

代码示例来源:origin: org.elasticsearch/jna

String webstartPath = Native.getWebStartLibraryPath(libraryName);
if (webstartPath != null) {
  if (Native.DEBUG_LOAD) {

相关文章

Native类方法