java.exe not exiting properly on XP
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
java.exe not exiting properly on XP
Has anyone had problems getting the command window to close after running a java app on windows XP. I have a feeling this is more of an XP issue than a TP 4.5.x issue but perhaps someone could shed some light on this for me. It would appear that the java VM is not exiting properly both the java.exe and cmd.exe processes are still running after the java application has exited and successfully closed. This is new with XP, W2k did not have this problem.
Re: java.exe not exiting properly on XP
As a follow up in case someone does have this issue. To fix this problem you need to re-install j2re-1_4_0-win.exe from sun. This seems to clear up the problem. It appears to have been an issue with how or where the jre was installed, but re-installing with the default values has cleared up the problem.
When Click Run Java Applet The AppletViewer is
When running the applet viewer, a DOS window appears with the errors, but the applet viewer is nowhere to be seen. Whilst running the same program on Windows 98, everything is perfect, but using Windows XP (which I am using) I'm experiencing problems. Can you please help me with this problem? The error that comes up with the DOS window follows beneath.
java.lang.UnsatisfiedLinkError: reshape
at sun.awt.windows.WComponentPeer.setBounds(WComponentPeer.java:67)
at sun.awt.windows.WComponentPeer.initialize(WComponentPeer.java:263)
at sun.awt.windows.WCanvasPeer.initialize(WCanvasPeer.java:34)
at sun.awt.windows.WPanelPeer.initialize(WPanelPeer.java:43)
at sun.awt.windows.WWindowPeer.initialize(WWindowPeer.java:61)
at sun.awt.windows.WFramePeer.initialize(WFramePeer.java:56)
at sun.awt.windows.WComponentPeer.<init>(WComponentPeer.java:237)
at sun.awt.windows.WCanvasPeer.<init>(WCanvasPeer.java:28)
at sun.awt.windows.WPanelPeer.<init>(WPanelPeer.java:39)
at sun.awt.windows.WWindowPeer.<init>(WWindowPeer.java:57)
at sun.awt.windows.WFramePeer.<init>(WFramePeer.java:50)
at sun.awt.windows.WToolkit.createFrame(WToolkit.java:172)
at java.awt.Frame.addNotify(Frame.java:203)
at java.awt.Window.pack(Window.java:123)
at sun.applet.AppletCopyright.<init>(AppletCopyright.java:37)
at sun.applet.AppletViewer.mainInit(AppletViewer.java:1030)
at sun.applet.AppletViewer.main(Compiled Code)
Full thread dump:
"AWT-Windows" (TID:0xbd83f8, sys_thread_t:0x1af0c58, Win32ID:0x97c, state:R)
prio=5
sun.awt.windows.WToolkit.run(WToolkit.java:98)
java.lang.Thread.run(Thread.java:466)
"AWT-EventQueue-0" (TID:0xbd8218, sys_thread_t:0x1abe580, Win32ID:0x6f4, sta
te:CW) prio=5
java.lang.Object.wait(Object.java:307)
java.awt.EventQueue.getNextEvent(Compiled Code)
java.awt.EventDispatchThread.run(Compiled Code)
"Finalizer thread" (TID:0xbd0088, sys_thread_t:0x1a5cf90, Win32ID:0x7bc, sta
te:CW) prio=2
"main" (TID:0xbd00b0, sys_thread_t:0x1a46718, Win32ID:0x958, state:CW) prio=
5
Monitor Cache Dump:
java.awt.EventQueue@BD8260/C37DC0: <unowned>
Waiters: 1
Registered Monitor Dump:
SymcJIT Method Monitor: <unowned>
SymcJIT Method List Monitor: <unowned>
SymcJIT Fixups Allocation: <unowned>
SymcJIT Code Allocation: <unowned>
SymcJIT Data Allocation: <unowned>
Thread queue lock: <unowned>
Waiters: 1
Name and type hash table lock: <unowned>
String intern lock: <unowned>
JNI pinning lock: <unowned>
JNI global reference lock: <unowned>
BinClass lock: <unowned>
Class loading lock: <unowned>
Java stack lock: <unowned>
Code rewrite lock: <unowned>
Heap lock: <unowned>
Has finalization queue lock: <unowned>
Finalize me queue lock: <unowned>
Waiters: 1
Monitor registry: <unowned>
Thank you for your help.
java.lang.UnsatisfiedLinkError: reshape
at sun.awt.windows.WComponentPeer.setBounds(WComponentPeer.java:67)
at sun.awt.windows.WComponentPeer.initialize(WComponentPeer.java:263)
at sun.awt.windows.WCanvasPeer.initialize(WCanvasPeer.java:34)
at sun.awt.windows.WPanelPeer.initialize(WPanelPeer.java:43)
at sun.awt.windows.WWindowPeer.initialize(WWindowPeer.java:61)
at sun.awt.windows.WFramePeer.initialize(WFramePeer.java:56)
at sun.awt.windows.WComponentPeer.<init>(WComponentPeer.java:237)
at sun.awt.windows.WCanvasPeer.<init>(WCanvasPeer.java:28)
at sun.awt.windows.WPanelPeer.<init>(WPanelPeer.java:39)
at sun.awt.windows.WWindowPeer.<init>(WWindowPeer.java:57)
at sun.awt.windows.WFramePeer.<init>(WFramePeer.java:50)
at sun.awt.windows.WToolkit.createFrame(WToolkit.java:172)
at java.awt.Frame.addNotify(Frame.java:203)
at java.awt.Window.pack(Window.java:123)
at sun.applet.AppletCopyright.<init>(AppletCopyright.java:37)
at sun.applet.AppletViewer.mainInit(AppletViewer.java:1030)
at sun.applet.AppletViewer.main(Compiled Code)
Full thread dump:
"AWT-Windows" (TID:0xbd83f8, sys_thread_t:0x1af0c58, Win32ID:0x97c, state:R)
prio=5
sun.awt.windows.WToolkit.run(WToolkit.java:98)
java.lang.Thread.run(Thread.java:466)
"AWT-EventQueue-0" (TID:0xbd8218, sys_thread_t:0x1abe580, Win32ID:0x6f4, sta
te:CW) prio=5
java.lang.Object.wait(Object.java:307)
java.awt.EventQueue.getNextEvent(Compiled Code)
java.awt.EventDispatchThread.run(Compiled Code)
"Finalizer thread" (TID:0xbd0088, sys_thread_t:0x1a5cf90, Win32ID:0x7bc, sta
te:CW) prio=2
"main" (TID:0xbd00b0, sys_thread_t:0x1a46718, Win32ID:0x958, state:CW) prio=
5
Monitor Cache Dump:
java.awt.EventQueue@BD8260/C37DC0: <unowned>
Waiters: 1
Registered Monitor Dump:
SymcJIT Method Monitor: <unowned>
SymcJIT Method List Monitor: <unowned>
SymcJIT Fixups Allocation: <unowned>
SymcJIT Code Allocation: <unowned>
SymcJIT Data Allocation: <unowned>
Thread queue lock: <unowned>
Waiters: 1
Name and type hash table lock: <unowned>
String intern lock: <unowned>
JNI pinning lock: <unowned>
JNI global reference lock: <unowned>
BinClass lock: <unowned>
Class loading lock: <unowned>
Java stack lock: <unowned>
Code rewrite lock: <unowned>
Heap lock: <unowned>
Has finalization queue lock: <unowned>
Finalize me queue lock: <unowned>
Waiters: 1
Monitor registry: <unowned>
Thank you for your help.
Re: When Click Run Java Applet The AppletViewer is
Hi, I found the solution to this problem for Windows 2000, I think it will also work for XP. You have to change TextPad's configuration for each type of preogram you are creating, ie an APPLET or APPLICATION, here is what worked for me:
When creating APPLICATIONS, you must go to Configure->Preferences->Tools and change the following things:
Compile Java-
Paramaters: -classpath . $BaseName
Initial Folder: $FileDir
Run Java Application:
Paramaters: -classpath . $BaseName
Initial Folder: $FileDir
When creating APPLETS, you must go to Configure->Preferences->Tools and change the following things:
Compiling-
Parameters: $File
Initial Folder: $FileDir
Run Java Applet
Parameters: $(BaseName).html
Initial Folder: $FileDir
When creating APPLICATIONS, you must go to Configure->Preferences->Tools and change the following things:
Compile Java-
Paramaters: -classpath . $BaseName
Initial Folder: $FileDir
Run Java Application:
Paramaters: -classpath . $BaseName
Initial Folder: $FileDir
When creating APPLETS, you must go to Configure->Preferences->Tools and change the following things:
Compiling-
Parameters: $File
Initial Folder: $FileDir
Run Java Applet
Parameters: $(BaseName).html
Initial Folder: $FileDir
CORRECTION
I made an error in the above reply, instead of:
Compile Java-
Parameters: -classpath . $BaseName
Initial Folder: $FileDir
It should read:
Compile Java-
Parameters: $File
Initial Folder: $FileDir
Sorry for the mistake, I hope it works for you.
Compile Java-
Parameters: -classpath . $BaseName
Initial Folder: $FileDir
It should read:
Compile Java-
Parameters: $File
Initial Folder: $FileDir
Sorry for the mistake, I hope it works for you.