error has been detected by HotSpot Virtual Machine EXCEPTION_FLT_DIVIDE_BY_

Hi everyone,

i've got this error

# An unexpected error has been detected by HotSpot Virtual Machine:

#

# EXCEPTION_FLT_DIVIDE_BY_ZERO (0xc000008e) at pc=0x00bda829,

pid=1608, tid=1232

when i trying to use variables with type double or float.

for example:

public class AverageFruit {

public static void main(String[] args) {

// Declare and initialize three variables

double numOranges = 50.0E-1; // Initial value is 5.0

double numApples = 1.0E1;// Initial value is 10.0

double averageFruit = 0.0;

averageFruit = (numOranges + numApples)/2.0;

System.out.println("A totally fruity program");

System.out.println("Average fruit is " + averageFruit);

}

}

[767 byte] By [vanjaa] at [2007-10-2 10:39:16]
# 1
I don't see anything wrong with the code and I even compiled and ran it with 1.4.2_09 and got the following output:> java AverageFruitA totally fruity programAverage fruit is 7.5What JRE version are you using?
cknelsena at 2007-7-13 2:45:05 > top of Java-index,Developer Tools,Java Compiler...