高级算法模块代码调整
This commit is contained in:
@@ -26,7 +26,7 @@ public class JnaCallDllOrSo {
|
|||||||
int beginIndex = os != null && os.startsWith("Windows") ? 1 : 0;
|
int beginIndex = os != null && os.startsWith("Windows") ? 1 : 0;
|
||||||
if(beginIndex == 0){
|
if(beginIndex == 0){
|
||||||
//linux操作系统
|
//linux操作系统
|
||||||
this.nameDll = "lib"+name+".os";
|
this.nameDll = "lib"+name+"_dll.os";
|
||||||
this.path = URLDecoder.decode(this.getClass().getProtectionDomain().getCodeSource().getLocation().getPath(), "UTF-8");
|
this.path = URLDecoder.decode(this.getClass().getProtectionDomain().getCodeSource().getLocation().getPath(), "UTF-8");
|
||||||
}else {
|
}else {
|
||||||
this.nameDll = name+".dll";
|
this.nameDll = name+".dll";
|
||||||
@@ -45,8 +45,7 @@ public class JnaCallDllOrSo {
|
|||||||
|
|
||||||
public String getStrpath() {
|
public String getStrpath() {
|
||||||
String aa = this.path+this.nameDll;
|
String aa = this.path+this.nameDll;
|
||||||
String bb= aa.replace("/", File.separator);
|
return aa.replace("/", File.separator);
|
||||||
return bb;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPath() {
|
public void setPath() {
|
||||||
|
|||||||
Reference in New Issue
Block a user