mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-02 00:15:02 -04:00
Improved error messages when running 64-bit FileBot with 32-bit Java on a 64-bit OS
This commit is contained in:
parent
80547dbf06
commit
6a44c4eea2
@ -10,7 +10,7 @@
|
||||
<classpathentry kind="lib" path="lib/ivy/jar/ehcache.jar" sourcepath="lib/ivy/source/ehcache.jar"/>
|
||||
<classpathentry kind="lib" path="lib/ivy/jar/glazedlists_java15.jar" sourcepath="lib/ivy/source/glazedlists_java15.jar"/>
|
||||
<classpathentry kind="lib" path="lib/ivy/jar/icu4j.jar"/>
|
||||
<classpathentry kind="lib" path="lib/ivy/jar/jna.jar"/>
|
||||
<classpathentry kind="lib" path="lib/ivy/jar/jna.jar" sourcepath="lib/ivy/source/jna.jar"/>
|
||||
<classpathentry kind="lib" path="lib/ivy/jar/junit.jar"/>
|
||||
<classpathentry kind="lib" path="lib/ivy/jar/miglayout-core.jar"/>
|
||||
<classpathentry kind="lib" path="lib/ivy/jar/miglayout-swing.jar"/>
|
||||
|
@ -15,7 +15,8 @@ public class MediaInfoException extends RuntimeException {
|
||||
private static String getLinkageErrorMessage(LinkageError e) {
|
||||
String name = Platform.isWindows() ? "MediaInfo.dll" : Platform.isMac() ? "libmediainfo.dylib" : "libmediainfo.so";
|
||||
String arch = System.getProperty("os.arch");
|
||||
return String.format("Unable to load %s native library %s: %s", arch, name, e.getMessage());
|
||||
String bit = Platform.is64Bit() ? "64-bit" : "32-bit";
|
||||
return String.format("Unable to load %s (%s) native library %s: %s", arch, bit, name, e.getMessage());
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user