我要用java调用c++的函数
先写了一个dll1,然后用另外一个dll2包装前一个dll1,再用java调用dll2
运行java程序的时候出现这个问题:F:\testJava\zj>java test1
#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000, pid=2320, tid=2332
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b23 mixed mode, sharing windows-x86)# Problematic frame:
# C 0x00000000
#
# An error report file with more information is saved as:
# F:\testJava\zj\hs_err_pid2320.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#看不懂这是啥意思,出了什么问题?请高人指教,谢谢^^
先写了一个dll1,然后用另外一个dll2包装前一个dll1,再用java调用dll2
运行java程序的时候出现这个问题:F:\testJava\zj>java test1
#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000, pid=2320, tid=2332
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b23 mixed mode, sharing windows-x86)# Problematic frame:
# C 0x00000000
#
# An error report file with more information is saved as:
# F:\testJava\zj\hs_err_pid2320.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#看不懂这是啥意思,出了什么问题?请高人指教,谢谢^^
环境变量的问题。