本文整理了Java中java.lang.UnsatisfiedLinkError.getMessage()
方法的一些代码示例,展示了UnsatisfiedLinkError.getMessage()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UnsatisfiedLinkError.getMessage()
方法的具体详情如下:
包路径:java.lang.UnsatisfiedLinkError
类名称:UnsatisfiedLinkError
方法名:getMessage
暂无
代码示例来源:origin: eclipsesource/J2V8
static boolean load(final String libName, final StringBuffer message) {
try {
if (libName.indexOf(SEPARATOR) != -1) {
System.load(libName);
} else {
System.loadLibrary(libName);
}
return true;
} catch (UnsatisfiedLinkError e) {
if (message.length() == 0) {
message.append(DELIMITER);
}
message.append('\t');
message.append(e.getMessage());
message.append(DELIMITER);
}
return false;
}
代码示例来源:origin: osmandapp/Osmand
log.error(e.getMessage(), e);
} catch (UnsatisfiedLinkError e) {
log.error(e.getMessage(), e);
代码示例来源:origin: robovm/robovm
return; // We successfully loaded the library. Job done.
} catch (UnsatisfiedLinkError e) {
lastError = e.getMessage();
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
"The required native library '" + unmappedName + "'"
+ " was not found in the classpath via '" + pathInJar
+ "'. Error message: " + e.getMessage());
} else {
logger.log(Level.FINE, "The optional native library ''{0}''" +
" was not found in the classpath via ''{1}''" +
". Error message: {2}",
new Object[]{unmappedName, pathInJar, e.getMessage()});
代码示例来源:origin: apache/hbase
LOG.debug("No JNI for codec '" + codecName + "' " + e.getMessage());
} catch (Exception e) {
LOG.error(codecName, e);
代码示例来源:origin: bytedeco/javacpp
logger.debug(e.getMessage());
代码示例来源:origin: eclipsesource/J2V8
static boolean load(final String libName, final StringBuffer message) {
try {
if (libName.indexOf(SEPARATOR) != -1) {
System.load(libName);
} else {
System.loadLibrary(libName);
}
return true;
} catch (UnsatisfiedLinkError e) {
if (message.length() == 0) {
message.append(DELIMITER);
}
message.append('\t');
message.append(e.getMessage());
message.append(DELIMITER);
}
return false;
}
代码示例来源:origin: net.java.dev.jna/jna
/** Look up the given global variable within this library.
* @param symbolName
* @return Pointer representing the global variable address
* @throws UnsatisfiedLinkError if the symbol is not found
*/
public Pointer getGlobalVariableAddress(String symbolName) {
try {
return new Pointer(getSymbolAddress(symbolName));
} catch(UnsatisfiedLinkError e) {
throw new UnsatisfiedLinkError("Error looking up '" + symbolName + "': " + e.getMessage());
}
}
代码示例来源:origin: SpigotMC/BungeeCord
System.out.println( "Could not load native library: " + ex.getMessage() );
代码示例来源:origin: RaiMan/SikuliX2
static void loadNativeLibrary(String aLib) {
try {
if (aLib.startsWith("_ext_")) {
error("loadNativeLibrary: loading external library not implemented: %s", aLib);
} else {
String sf_aLib = new File(getSXNATIVE(), aLib).getAbsolutePath();
System.load(sf_aLib);
trace("loadNativeLibrary: bundled: %s", aLib);
}
} catch (UnsatisfiedLinkError ex) {
terminate(1, "loadNativeLibrary: loading library error: %s (%s)", aLib, ex.getMessage());
}
}
//</editor-fold>
代码示例来源:origin: nguyenq/tess4j
logger.error(e.getMessage());
throw new RuntimeException(getMessage(e.getMessage()));
} catch (NoClassDefFoundError e) {
logger.error(e.getMessage());
代码示例来源:origin: nguyenq/tess4j
logger.error(e.getMessage());
throw new RuntimeException(getMessage(e.getMessage()));
} catch (NoClassDefFoundError e) {
logger.error(e.getMessage());
代码示例来源:origin: nguyenq/tess4j
logger.error(e.getMessage());
throw new RuntimeException(getMessage(e.getMessage()));
} catch (NoClassDefFoundError e) {
logger.error(e.getMessage());
代码示例来源:origin: nguyenq/tess4j
logger.error(e.getMessage());
throw new RuntimeException(getMessage(e.getMessage()));
} catch (NoClassDefFoundError e) {
logger.error(e.getMessage());
代码示例来源:origin: net.java.dev.jna/jna
throw new UnsatisfiedLinkError("Error looking up function '"
+ functionName + "': "
+ e.getMessage());
代码示例来源:origin: naver/ngrinder
LOGGER.error("Sigar lib link error: {}", e.getMessage());
desirableXmx = DEFAULT_XMX_SIZE;
} catch (SigarException e) {
代码示例来源:origin: dodola/RocooFix
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
TextView test = (TextView)this.findViewById(R.id.test);
TextView source = (TextView)this.findViewById(R.id.source);
source.setText("请在如下路径放入so "+SoFileUtil.getSDCardSoPath().getAbsolutePath()+File.separator+SoFileUtil.getFullSoName("libhello-jni")+" [请注意修改so文件名称]");
TextView copyfrom = (TextView)this.findViewById(R.id.copyfrom);
copyfrom.setText("so会被安装到"+SoFileUtil.getDataFileSoPatchForInstall(this).getAbsolutePath()+ File.separator+SoFileUtil.getFullSoName("libhello-jni")+"路径");
String jniStr=null;
try {
jniStr=HelloJni.stringFromJNI();
test.setText("读取so内容["+jniStr+"]");
} catch (UnsatisfiedLinkError e) {
e.printStackTrace();
test.setText("##错误## "+e.getMessage());
}
}
}
代码示例来源:origin: AsamK/signal-cli
System.err.println("Missing native library dependency for dbus service: " + e.getMessage());
return 1;
} catch (DBusException e) {
代码示例来源:origin: eclipsesource/J2V8
@Test(expected = UnsatisfiedLinkError.class)
public void testJ2V8CannotCreateRuntime() {
assumeFalse(skipMessage, skipTest()); // conditional skip
String oldValue = System.getProperty("os.arch");
System.setProperty("os.arch", "unknown");
try {
V8.createV8Runtime();
}
catch (UnsatisfiedLinkError ex) {
assertEquals("Unsupported arch: unknown", ex.getMessage());
throw ex;
}
finally {
System.setProperty("os.arch", oldValue);
}
}
代码示例来源:origin: AsamK/signal-cli
conn.requestBusName(SIGNAL_BUSNAME);
} catch (UnsatisfiedLinkError e) {
System.err.println("Missing native library dependency for dbus service: " + e.getMessage());
return 1;
} catch (DBusException e) {
内容来源于网络,如有侵权,请联系作者删除!