
JNI学习
文章平均质量分 76
deBroglie_cn
这个作者很懒,什么都没留下…
展开
-
JNI学习1--传递java对象 demo
<br />1.首先创建HelloWorld.java文件:<br />class Person { public String name; public int age; public boolean student; Person(String name, int age, boolean student){ this.name = name; this.age = age; this.student = student; } public String原创 2010-11-25 16:46:00 · 3832 阅读 · 0 评论 -
dlopen错误
dlopen第三方动态库时经常会发生打开失败的错误,可以适用dlerror()函数查看具体错误:void *dlh;dlh = dlopen("libdes3-32.so", RTLD_NOW | RTLD_GLOBAL);if (dlh == NULL){ printf("dlopen err:%s.\n",dlerror());}如果错误信息与ELF格式相关,一般原创 2013-08-23 11:12:14 · 15127 阅读 · 0 评论