Hallo Hallo,
da wir im Informatik-Unterricht jetzt mit dem Programmieren von Fenstern angefangen haben, nachdem wir vorher schon mit Java gerechnet hatten, wollte ich das zuhause ein wenig üben...
Ich habe den gezeigten Quelltext, der an unseren Schul-PCs definitiv funktioniert, meinem Compiler (eigentlich JDK6 Update 3) übergeben (keine Beanstandungen). Doch beim Ausführen des Programms erscheint folgender Text (eigentlich in der Konsole):
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c350428, pid=2196, tid=2572
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
# Problematic frame:
# C [msvcr71.dll+0x10428]
#
#An error report file with more inforamtion is saved as hs_err_pid2196.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
In der angegebenen "hs_err_pid2196.log" steht folgendes:
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c350428, pid=2196, tid=2572
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
# Problematic frame:
# C [msvcr71.dll+0x10428]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
--------------- T H R E A D ---------------
Current thread (0x02ae2000): JavaThread "AWT-Windows" daemon [_thread_in_native, id=2572]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
Registers:
EAX=0x00000000, EBX=0x00000020, ECX=0x02f0f744, EDX=0x00000000
ESP=0x02f0f528, EBP=0x02f0f978, ESI=0x6d186770, EDI=0x77ef5a7a
EIP=0x7c350428, EFLAGS=0x00010296
Top of Stack: (sp=0x02f0f528)
0x02f0f528: 6d127db8 02f0f744 00000000 6d158780
0x02f0f538: 9e0109fd 00000498 00000042 00530025
0x02f0f548: 00530059 00450054 0052004d 004f004f
0x02f0f558: 00250054 0043005c 00720075 006f0073
0x02f0f568: 00730072 0033005c 00770064 00720061
0x02f0f578: 006f0072 0063002e 00720075 00000000
0x02f0f588: 77da8921 000a5d84 77da892a 000a5d6c
0x02f0f598: 77e162a0 02f0f6f4 02f0f77c 02f0f6e0
Instructions: (pc=0x7c350428)
0x7c350418: 46 66 85 c9 75 f1 5e c3 8b 4c 24 04 8b 54 24 08
0x7c350428: 66 8b 02 66 89 01 41 41 42 42 66 85 c0 75 f1 8b
Stack: [0x02ec0000,0x02f10000), sp=0x02f0f528, free space=317k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [msvcr71.dll+0x10428]
j sun.awt.windows.WToolkit.init()Z+0
j sun.awt.windows.WToolkit.run()V+1
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.awt.windows.WToolkit.init()Z+0
j sun.awt.windows.WToolkit.run()V+1
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
=>0x02ae2000 JavaThread "AWT-Windows" daemon [_thread_in_native, id=2572]
0x02ae1400 JavaThread "AWT-Shutdown" [_thread_blocked, id=2784]
0x02adf800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=488]
0x02a5c000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=760]
0x02a58400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=752]
0x02a56400 JavaThread "Attach Listener" daemon [_thread_blocked, id=676]
0x02a55400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3012]
0x02a50c00 JavaThread "Finalizer" daemon [_thread_blocked, id=2120]
0x02a4c800 JavaThread "Reference Handler" daemon [_thread_blocked, id=3760]
0x00295800 JavaThread "main" [_thread_blocked, id=3156]
Other Threads:
0x02a4b400 VMThread [id=808]
0x02a5d800 WatcherThread [id=3876]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 960K, used 520K [0x22960000, 0x22a60000, 0x22e40000)
eden space 896K, 58% used [0x22960000, 0x229e2078, 0x22a40000)
from space 64K, 0% used [0x22a40000, 0x22a40000, 0x22a50000)
to space 64K, 0% used [0x22a50000, 0x22a50000, 0x22a60000)
tenured generation total 4096K, used 0K [0x22e40000, 0x23240000, 0x26960000)
the space 4096K, 0% used [0x22e40000, 0x22e40000, 0x22e40200, 0x23240000)
compacting perm gen total 12288K, used 77K [0x26960000, 0x27560000, 0x2a960000)
the space 12288K, 0% used [0x26960000, 0x269737b0, 0x26973800, 0x27560000)
ro space 8192K, 62% used [0x2a960000, 0x2ae614a8, 0x2ae61600, 0x2b160000)
rw space 12288K, 52% used [0x2b160000, 0x2b7a7278, 0x2b7a7400, 0x2bd60000)
Dynamic libraries:
0x00400000 - 0x00423000 C:\WINDOWS\system32\java.exe
0x7c910000 - 0x7c9c7000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c907000 C:\WINDOWS\system32\kernel32.dll
0x77da0000 - 0x77e4a000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e50000 - 0x77ee2000 C:\WINDOWS\system32\RPCRT4.dll
0x77fc0000 - 0x77fd1000 C:\WINDOWS\system32\Secur32.dll
0x7c340000 - 0x7c396000 C:\Programme\Java\jre1.6.0_03\bin\msvcr71.dll
0x6d7c0000 - 0x6da0a000 C:\Programme\Java\jre1.6.0_03\bin\client\jvm.dll
0x7e360000 - 0x7e3f0000 C:\WINDOWS\system32\USER32.dll
0x77ef0000 - 0x77f37000 C:\WINDOWS\system32\GDI32.dll
0x76af0000 - 0x76b1e000 C:\WINDOWS\system32\WINMM.dll
0x6d310000 - 0x6d318000 C:\Programme\Java\jre1.6.0_03\bin\hpi.dll
0x76bb0000 - 0x76bbb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d770000 - 0x6d77c000 C:\Programme\Java\jre1.6.0_03\bin\verify.dll
0x6d3b0000 - 0x6d3cf000 C:\Programme\Java\jre1.6.0_03\bin\java.dll
0x6d7b0000 - 0x6d7bf000 C:\Programme\Java\jre1.6.0_03\bin\zip.dll
0x6d000000 - 0x6d1c3000 C:\Programme\Java\jre1.6.0_03\bin\awt.dll
0x72f70000 - 0x72f96000 C:\WINDOWS\system32\WINSPOOL.DRV
0x77be0000 - 0x77c38000 C:\WINDOWS\system32\msvcrt.dll
0x76330000 - 0x7634d000 C:\WINDOWS\system32\IMM32.dll
0x774b0000 - 0x775ed000 C:\WINDOWS\system32\ole32.dll
0x5b0f0000 - 0x5b128000 C:\WINDOWS\system32\uxtheme.dll
0x736d0000 - 0x73719000 C:\WINDOWS\system32\ddraw.dll
0x73b30000 - 0x73b36000 C:\WINDOWS\system32\DCIMAN32.dll
0x6d2b0000 - 0x6d303000 C:\Programme\Java\jre1.6.0_03\bin\fontmanager.dll
0x746a0000 - 0x746eb000 C:\WINDOWS\system32\MSCTF.dll
0x10000000 - 0x10008000 C:\Programme\KGB\MPK.dll
VM Arguments:
java_command: HalloWeltFenster
Launcher Type: SUN_STANDARD
Environment Variables:
CLASSPATH=.;C:\Programme\Java\jre1.6.0_03\lib\ext\QTJava.zip
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 2
CPU:total 2 (1 cores per cpu, 2 threads per core) family 15 model 3 stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht
Memory: 4k page, physical 1572332k(1013560k free), swap 2208716k(1770492k free)
vm_info: Java HotSpot(TM) Client VM (1.6.0_03-b05) for windows-x86, built on Sep 24 2007 22:24:33 by "java_re" with unknown MS VC++:1310
Ich arbeite mit dem JOE-Editor und habe vorher auch schon Java Programme fehlerfrei Ausführen können, außer eben dieses...
Ich hab das Java JDK6 Update 3 installiert, falls euch das was sagt...
mfg und in großer Hoffnung
dekoker
da wir im Informatik-Unterricht jetzt mit dem Programmieren von Fenstern angefangen haben, nachdem wir vorher schon mit Java gerechnet hatten, wollte ich das zuhause ein wenig üben...
Code:
import javax.swing.*;
import java.awt.event.*;
public class HalloWeltFenster extends JFrame
{
public HalloWeltFenster(String title)
{
super(title);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setSize(300,300);
setVisible(true);
}
public static void main (String args[])
{
new HalloWeltFenster("Ein Fenster!");
}
}
Ich habe den gezeigten Quelltext, der an unseren Schul-PCs definitiv funktioniert, meinem Compiler (eigentlich JDK6 Update 3) übergeben (keine Beanstandungen). Doch beim Ausführen des Programms erscheint folgender Text (eigentlich in der Konsole):
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c350428, pid=2196, tid=2572
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
# Problematic frame:
# C [msvcr71.dll+0x10428]
#
#An error report file with more inforamtion is saved as hs_err_pid2196.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
In der angegebenen "hs_err_pid2196.log" steht folgendes:
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c350428, pid=2196, tid=2572
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
# Problematic frame:
# C [msvcr71.dll+0x10428]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
--------------- T H R E A D ---------------
Current thread (0x02ae2000): JavaThread "AWT-Windows" daemon [_thread_in_native, id=2572]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
Registers:
EAX=0x00000000, EBX=0x00000020, ECX=0x02f0f744, EDX=0x00000000
ESP=0x02f0f528, EBP=0x02f0f978, ESI=0x6d186770, EDI=0x77ef5a7a
EIP=0x7c350428, EFLAGS=0x00010296
Top of Stack: (sp=0x02f0f528)
0x02f0f528: 6d127db8 02f0f744 00000000 6d158780
0x02f0f538: 9e0109fd 00000498 00000042 00530025
0x02f0f548: 00530059 00450054 0052004d 004f004f
0x02f0f558: 00250054 0043005c 00720075 006f0073
0x02f0f568: 00730072 0033005c 00770064 00720061
0x02f0f578: 006f0072 0063002e 00720075 00000000
0x02f0f588: 77da8921 000a5d84 77da892a 000a5d6c
0x02f0f598: 77e162a0 02f0f6f4 02f0f77c 02f0f6e0
Instructions: (pc=0x7c350428)
0x7c350418: 46 66 85 c9 75 f1 5e c3 8b 4c 24 04 8b 54 24 08
0x7c350428: 66 8b 02 66 89 01 41 41 42 42 66 85 c0 75 f1 8b
Stack: [0x02ec0000,0x02f10000), sp=0x02f0f528, free space=317k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [msvcr71.dll+0x10428]
j sun.awt.windows.WToolkit.init()Z+0
j sun.awt.windows.WToolkit.run()V+1
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.awt.windows.WToolkit.init()Z+0
j sun.awt.windows.WToolkit.run()V+1
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
=>0x02ae2000 JavaThread "AWT-Windows" daemon [_thread_in_native, id=2572]
0x02ae1400 JavaThread "AWT-Shutdown" [_thread_blocked, id=2784]
0x02adf800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=488]
0x02a5c000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=760]
0x02a58400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=752]
0x02a56400 JavaThread "Attach Listener" daemon [_thread_blocked, id=676]
0x02a55400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3012]
0x02a50c00 JavaThread "Finalizer" daemon [_thread_blocked, id=2120]
0x02a4c800 JavaThread "Reference Handler" daemon [_thread_blocked, id=3760]
0x00295800 JavaThread "main" [_thread_blocked, id=3156]
Other Threads:
0x02a4b400 VMThread [id=808]
0x02a5d800 WatcherThread [id=3876]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 960K, used 520K [0x22960000, 0x22a60000, 0x22e40000)
eden space 896K, 58% used [0x22960000, 0x229e2078, 0x22a40000)
from space 64K, 0% used [0x22a40000, 0x22a40000, 0x22a50000)
to space 64K, 0% used [0x22a50000, 0x22a50000, 0x22a60000)
tenured generation total 4096K, used 0K [0x22e40000, 0x23240000, 0x26960000)
the space 4096K, 0% used [0x22e40000, 0x22e40000, 0x22e40200, 0x23240000)
compacting perm gen total 12288K, used 77K [0x26960000, 0x27560000, 0x2a960000)
the space 12288K, 0% used [0x26960000, 0x269737b0, 0x26973800, 0x27560000)
ro space 8192K, 62% used [0x2a960000, 0x2ae614a8, 0x2ae61600, 0x2b160000)
rw space 12288K, 52% used [0x2b160000, 0x2b7a7278, 0x2b7a7400, 0x2bd60000)
Dynamic libraries:
0x00400000 - 0x00423000 C:\WINDOWS\system32\java.exe
0x7c910000 - 0x7c9c7000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c907000 C:\WINDOWS\system32\kernel32.dll
0x77da0000 - 0x77e4a000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e50000 - 0x77ee2000 C:\WINDOWS\system32\RPCRT4.dll
0x77fc0000 - 0x77fd1000 C:\WINDOWS\system32\Secur32.dll
0x7c340000 - 0x7c396000 C:\Programme\Java\jre1.6.0_03\bin\msvcr71.dll
0x6d7c0000 - 0x6da0a000 C:\Programme\Java\jre1.6.0_03\bin\client\jvm.dll
0x7e360000 - 0x7e3f0000 C:\WINDOWS\system32\USER32.dll
0x77ef0000 - 0x77f37000 C:\WINDOWS\system32\GDI32.dll
0x76af0000 - 0x76b1e000 C:\WINDOWS\system32\WINMM.dll
0x6d310000 - 0x6d318000 C:\Programme\Java\jre1.6.0_03\bin\hpi.dll
0x76bb0000 - 0x76bbb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d770000 - 0x6d77c000 C:\Programme\Java\jre1.6.0_03\bin\verify.dll
0x6d3b0000 - 0x6d3cf000 C:\Programme\Java\jre1.6.0_03\bin\java.dll
0x6d7b0000 - 0x6d7bf000 C:\Programme\Java\jre1.6.0_03\bin\zip.dll
0x6d000000 - 0x6d1c3000 C:\Programme\Java\jre1.6.0_03\bin\awt.dll
0x72f70000 - 0x72f96000 C:\WINDOWS\system32\WINSPOOL.DRV
0x77be0000 - 0x77c38000 C:\WINDOWS\system32\msvcrt.dll
0x76330000 - 0x7634d000 C:\WINDOWS\system32\IMM32.dll
0x774b0000 - 0x775ed000 C:\WINDOWS\system32\ole32.dll
0x5b0f0000 - 0x5b128000 C:\WINDOWS\system32\uxtheme.dll
0x736d0000 - 0x73719000 C:\WINDOWS\system32\ddraw.dll
0x73b30000 - 0x73b36000 C:\WINDOWS\system32\DCIMAN32.dll
0x6d2b0000 - 0x6d303000 C:\Programme\Java\jre1.6.0_03\bin\fontmanager.dll
0x746a0000 - 0x746eb000 C:\WINDOWS\system32\MSCTF.dll
0x10000000 - 0x10008000 C:\Programme\KGB\MPK.dll
VM Arguments:
java_command: HalloWeltFenster
Launcher Type: SUN_STANDARD
Environment Variables:
CLASSPATH=.;C:\Programme\Java\jre1.6.0_03\lib\ext\QTJava.zip
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 2
CPU:total 2 (1 cores per cpu, 2 threads per core) family 15 model 3 stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht
Memory: 4k page, physical 1572332k(1013560k free), swap 2208716k(1770492k free)
vm_info: Java HotSpot(TM) Client VM (1.6.0_03-b05) for windows-x86, built on Sep 24 2007 22:24:33 by "java_re" with unknown MS VC++:1310
Ich arbeite mit dem JOE-Editor und habe vorher auch schon Java Programme fehlerfrei Ausführen können, außer eben dieses...
Ich hab das Java JDK6 Update 3 installiert, falls euch das was sagt...
mfg und in großer Hoffnung
dekoker