Created
February 5, 2014 04:41
-
-
Save hakanai/8817530 to your computer and use it in GitHub Desktop.
What this jar file appears to be doing to start up
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void loadFREngineJNIDll() | |
throws Exception | |
{ | |
String str1 = null; | |
ClassLoader localClassLoader = Engine.class.getClassLoader(); | |
if ((localClassLoader instanceof URLClassLoader)) | |
{ | |
localObject = (URLClassLoader)localClassLoader; | |
for (URL localURL : ((URLClassLoader)localObject).getURLs()) | |
{ | |
String str3 = localURL.toString(); | |
if (str3.indexOf("com.abbyy.FREngine.jar") > 0) | |
{ | |
int k = "file:/".length(); | |
int m = str3.length(); | |
str1 = str3.substring(k, m); | |
str1 = str1.replace("%20", " "); | |
} | |
} | |
} | |
Object localObject = GetJNIDllFolder(); | |
if (!canWriteToDir((String)localObject)) { | |
throw new Exception("Can't access to the JNI dll folder: \"" + (String)localObject + "\". Use method SetJNIDllFolder to set the correct path."); | |
} | |
if (str1 != null) { | |
try | |
{ | |
localObject = combinePaths((String)localObject, "Java"); | |
createPath((String)localObject); | |
localObject = combinePaths((String)localObject, "com.abbyy.FREngine"); | |
createPath((String)localObject); | |
unpackJar(str1, (String)localObject, "win"); | |
} | |
catch (IOException localIOException) {} | |
} | |
String str2 = combinePaths((String)localObject, "win"); | |
str2 = combinePaths(str2, getJVMArchitecture()); | |
str2 = combinePaths(str2, "FREngine.JNI.dll"); | |
System.load(str2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment