aspose file tools*
The moose likes Java in General and the fly likes Can JDK or JRE crash? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Can JDK or JRE crash?" Watch "Can JDK or JRE crash?" New topic
Author

Can JDK or JRE crash?

Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

Hey all,

This question is about both JDK and JRE. Can JDK and JRE crashed? I have faced "class def not found" error and "class main not found" etc, which occurs because of JRE/JDK crashes according to what I have heard. Anyway, someone says it cannot happen, I mean JDK or JRE will not crash, never. Is that is true? Please help!


Are you better than me? Then please show me my mistakes..
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18988
    
  40

Yohan Weerasinghe wrote:Hey all,

This question is about both JDK and JRE. Can JDK and JRE crashed? I have faced "class def not found" error and "class main not found" etc, which occurs because of JRE/JDK crashes according to what I have heard. Anyway, someone says it cannot happen, I mean JDK or JRE will not crash, never. Is that is true? Please help!


First of all, class not found or main() method not found errors are *not* crashes. You messed up your application, and the JDK complains, which is what it is supposed to do.


Crashes, such as segmentation violations, or other things, that causes a core dump should *not* happen. However, although rare now, like any program it can happens. If it does, then you should upgrade your JVM to the latest update, or you can submit a bug report, along with the crash dump to Oracle/Sun. This is of course, assuming that you are not using JNI, otherwise you have to debug your C/C++ code.

And BTW, if you never seen your JVM crash, it should look something like this...

#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x10002732, pid=XXXX, tid=YYYY
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b19 mixed mode windows-x86)
# Problematic frame:
# C [profilerinterface.dll+0x2728]
#
# An error report file with more information is saved as:
#
C:\somedir\somesubdir\anotherdirhs_err_pidXXXX.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.
#


This is then followed by a stack trace, along with a separate core dump file.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

Thanks a lot for the reply Henry. I really appreciate it

But, how did you get the output? Did you make your own JVM crashed by your self just to reply to this thread??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can JDK or JRE crash?