jar包双击后生成错误log
我的jar包在cmd窗口中用java -jar test.jar可以执行,但双击不行,并生成以下错误:
#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d890e20, pid=3604, tid=4004
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode)
# Problematic frame:
# V [jvm.dll+0xd0e20]
#
# 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 (0x003f6000): JavaThread "main " [_thread_in_vm, id=4004]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
Registers:
EAX=0x00000000, EBX=0x0ab5ba40, ECX=0x003f5438, EDX=0x0ab5ba48
ESP=0x0091f264, EBP=0x003f6000, ESI=0x069d4160, EDI=0x0ab5ba44
EIP=0x6d890e20, EFLAGS=0x00010206
Top of Stack: (sp=0x0091f264)
0x0091f264: 0ae29444 003f60e8 0091f2d8 0ae29440
0x0091f274: 003f6000 0ab5ba3c 0000008a 6d9a0448
0x0091f284: 00000004 00000030 0000004d 00000000
0x0091f294: 00000014 00000000 00000015 0ab5ba4c
0x0091f2a4: 6d127fc7 003f6000 00000000 6d140f2c
0x0091f2b4: 6d140c64 003f6000 06dfa020 06dfa020
0x0091f2c4: 00000000 0091f2b8 0091f3fc 6d13e1b0
0x0091f2d4: 00000000 0091f308 0095a430 00000000
Instructions: (pc=0x6d890e20)
0x6d890e10: f9 00 00 00 85 ff 0f 84 f1 00 00 00 8b 44 24 48
0x6d890e20: 8b 00 50 e8 88 f5 fe ff 83 c4 04 50 55 8d 4c 24
Stack: [0x008d0000,0x00920000), sp=0x0091f264, free space=316k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [jvm.dll+0xd0e20]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.awt.windows.WToolkit.initIDs()V+0
j sun.awt.windows.WToolkit. <clinit> ()V+19
v ~StubRoutines::call_stub
j sun.awt.Win32GraphicsEnvironment. <clinit> ()V+0
v ~StubRoutines::call_stub
j java.lang.Class.forName0(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;+0
j java.lang.Class.forName(Ljava/lang/String;)Ljava/lang/Class;+5
j java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment()Ljava/awt/GraphicsEnvironment;+24
j java.awt.Window.init(Ljava/awt/GraphicsConfiguration;)V+48
j java.awt.Window. <init> ()V+82
j java.awt.Frame. <init> (Ljava/lang/String;)V+1