This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
hello all....... i m getting this when i tried to run my java prog which calls some c func using JNI....what does it want to say....what si wrong n where # # An unexpected error has been detected by HotSpot Virtual Machine: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d6fd912, pid=1212, tid=1452 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode, sharing) # Problematic frame: # V [jvm.dll+0x8d912] # # An error report file with more information is saved as hs_err_pid1212.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp #
Your JVM is crashing, plain and simple. An "access violation" means that the program is trying to use memory it's not suppose to use, and that's what's causing the crash. This could be due to the C code using a NULL pointer, dereferencing something that's not actually a valid pointer, or many other things.
EIther use a debugger to step through your JNI code, or simply put some printf() calls in to trace where it's going, to narrow down the point at which the crash occurs.