0

I have tried execute this class as a java application and have got this following error .

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (classFileParser.cpp:3494), pid=4804, tid=5860
#  Error: ShouldNotReachHere()
#
# JRE version: 6.0_35-b10
# Java VM: Java HotSpot(TM) Client VM (20.10-b01 mixed mode windows-x86 )
# An error report file with more information is saved as:
# D:\HussainEclipse\GT_GoogleAPI_Android_Sept28\hs_err_pid4804.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

you can find my class file here

any suggestion , what is going wrong ,

i haven't written this class , have just tried to understand , and it should bring me some desired output

also on an ending note this class was importing edu.uci.ics.crawler4j.crawler.Configurations but i could not find any jar for this , but i found a class definition so i created this class in my project which can be found here

3 Answers3

2

It seems to be a JVM bug

Have a look at: A fatal error has been detected by the Java Runtime Environment: Internal Error ; Error: ShouldNotReachHere()

Community
  • 1
  • 1
thedayofcondor
  • 3,860
  • 1
  • 19
  • 28
2

It looks like you are trying to execute Dalvik bytecode on a Oracle JVM. Although both are written with the same syntax, the bytecode is completely different. You need to recompile for Java.

Jakub Zaverka
  • 8,816
  • 3
  • 32
  • 48
  • well this is a part of the Android project and my other java classes wrok fine with it – Hussain Akhtar Wahid 'Ghouri' Nov 05 '12 at 09:32
  • You can't execute Android code on the JVM (even if some parts works). Use the emulator, you can add it as a plugin to eclipse (android plugin or android tools, I think). – SJuan76 Nov 05 '12 at 09:49
  • The fact that the error is thrown from a JRE, and the project is supposed to be Android, should ring a bell. This is a configuration problem, I would say. – Jakub Zaverka Nov 05 '12 at 09:50
  • We don't see the structure of your project, but make sure the Android parts are executed on Dalvik VM, NOT Java VM. Just because Android code looks exactly like Java doesn't mean it is compatible with Java. – Jakub Zaverka Nov 05 '12 at 09:51
0

This is a problem within the JVM itself.

The JVM is just another program as it can have its own bugs/glitches/installation problems. This kind of error does not mean that you have an error in your Java program or that you did anything wrong (the same way than an internal error in MS Word does not mean that your document is wrong).

You should check the log file for more information, but I would just reinstall java/update to a newer version if possible as a first step.

SJuan76
  • 24,532
  • 6
  • 47
  • 87