许一时情话 许一时情话
关注数: 3 粉丝数: 54 发帖数: 223 关注贴吧数: 22
java JVM崩溃求大神解答 # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x3bba6670, pid=1836, tid=2660 # # JRE version: Java(TM) SE Runtime Environment (7.0_79-b15) (build 1.7.0_79-b15) # Java VM: Java HotSpot(TM) Client VM (24.79-b02 mixed mode windows-x86 ) # Problematic frame: # C [facematcherdll.dll+0x6670] # # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows # # An error report file with more information is saved as: # D:\myeclipse_youth\mywork\work\com.shixu.faceui\hs_err_pid1836.log # # If you would like to submit a bug report, please visit: # http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fbugreport.java.com%2Fbugreport%2Fcrash.jsp&urlrefer=a2c9922d4b6863d6efc637d4b376057f # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # *************** [nvssdk]Update time : 2013-07-29 *************** 在调用库文件的时候崩溃的,单独的调用是没问题的,放到项目中就有问题了 f.write(_lpStreamData.getByteArray(iOffset, iJpgSize)); f.flush(); String fileName = strDate + ".jpg"; // //测试 // String fileName = "WCB.jpg"; String featureUrl = FaceConfig.RECORD_SB_IMGURL + strDate + ".jpg"; // 做其他处理 // 获取人脸特征 float[] resu = FaceMatcher.getInfo(featureUrl); System.out.println("获取人脸特征---"); // 服务器请求地址 String url = FaceConfig.SERVER_URL + "record/addRecord.do"; // 将float数组转化为字符串 String res = faceUtil.StringBuffer(resu); // 弹出对话框 显示信息 PopWindow.main(featureUrl, "。。。。。。。。。。。。。"); float[] resu = FaceMatcher.getInfo(featureUrl);这句代码崩溃的。 求大神解答了
jna调用其他语言报错,大神求助啊,刚接触这个 Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function 'Init': 找不到指定的程序。 at com.sun.jna.Function.<init>(Function.java:179) at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:350) at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:330) at com.sun.jna.Library$Handler.invoke(Library.java:203) at com.sun.proxy.$Proxy0.Init(Unknown Source) at src.Testqwer.main(Testqwer.java:58) Load avnetsdk library dynamically avnetsdk module handle: 00000000 load configsdk dynamically! -------------------------------------------- public static YKCameraLibrary ykCameraLibrary = (YKCameraLibrary) Native.loadLibrary( "C:\\Users\\beiyong\\Desktop\\DHNetDemo\\YKCameraLibrary", YKCameraLibrary.class); // ***************** 系统信息 ******************** // 获得最近错误消息; public String GetLastError(); // ***************** 系统起止操作 ***************** // 初期化...:配置用户识别码CODE。 boolean Init(int iUserCode,int se,int er); public boolean YK_Init(int iUserCode); // 结束释放所有资源... public void Over(); // ***************** 设备登入、登出阶段 ***************** // 连接远程设备; public long ConnetDevice(String strIPAddr, short wPort, String strLoginName, String strLoginPass); // 断开远程设备; public void DiscDevice(long lDeviceID); // ***************** 设备回调函数 ***************** // 用户掉线处理... public void CallBack_DropLine(long lDeviceID, // 设备ID String strDVRIP, // 设备IP地址 int nDVRPort, // 设备端口号 int iUserCode); // ***************** 系统初始化阶段 ***************** public long Call_ConnetDevice( // 【调用】 连接远程设备; 【返回】 创建设备的识别码! String strIPAddr, // 远程IP地址 short wPort, // 远程端口号 String strLoginName, // 远程登录账户名 String strLoginPass); public void Call_DiscDevice(long lDeviceID); } public static void main(String[] args) { boolean bool = YKCameraLibrary.ykCameraLibrary.Init(15,12,10); System.out.println(bool+""); } 那个loadLibrary里面不写路径他就找不到.dll文件
1 下一页