• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can JDK or JRE crash?

 
Yohan Weerasinghe
Ranch Hand
Posts: 507
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Henry Wong
author
Marshal
Pie
Posts: 21431
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Yohan Weerasinghe
Ranch Hand
Posts: 507
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic