Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

so文件32 64位版本冲突? #12

Open
shengyao15 opened this issue May 11, 2016 · 2 comments
Open

so文件32 64位版本冲突? #12

shengyao15 opened this issue May 11, 2016 · 2 comments

Comments

@shengyao15
Copy link

我用了项目中自带的libApkPatchLibrary.so 文件, 放到服务器中执行的时候碰到的错误如下
查了下资料说是 jdk 版本冲突, 谁有没有64位的版本so文件?

[root@bogon apkPatch]# java -Djava.library.path=/public/service/apkPatch/so -jar apkDiff2.jar
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /public/service/apkPatch/so/libApkPatchLibrary.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
Exception in thread "main" java.lang.UnsatisfiedLinkError: /public/service/apkPatch/so/libApkPatchLibrary.so: /public/service/apkPatch/so/libApkPatchLibrary.so: 错误 ELF 类: ELFCLASS32 (Possible cause: architecture word width mismatch)
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1929)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1847)
        at java.lang.Runtime.loadLibrary0(Runtime.java:870)
        at java.lang.System.loadLibrary(System.java:1119)
        at com.cundong.apkdiff.ApkDiffDemo.<clinit>(ApkDiffDemo.java:32)
@lanpy233
Copy link

你解决了吗?

@lixiansky
Copy link

需要自己再次编译

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants