Results 1 to 6 of 6
- 09-29-2010, 04:45 PM #1
Member
- Join Date
- Sep 2010
- Posts
- 56
- Rep Power
- 0
javaw.exe problem in Task Manager
Hello ....
I have built a Java Program that basically uses a JFrame and Jpanels on top of that....
When I run the main class file... All works fine....
I ran that application several times to check different things... After some time my PC began to slow down too much....
When I checked the "processes" under the Windows Task Manager...
There was a file javaw.exe in the processes of my Task Manager.... And this file/process does not remove as soon as I close the application.... Instaed I have to End the process from the task manager....
Does any one have an idea... why is that process there and how to end this process as soon as I close my application.... ??
Many Thanks for the cooperation....
Best Regards,
Sarwar
- 09-29-2010, 04:47 PM #2
Member
- Join Date
- Sep 2010
- Posts
- 56
- Rep Power
- 0
Ah... One important thing...
Also a new process javaw.exe is created each time I run the application....
So as many time I run the application... I get more and more javaw.exe processes in the task manager....
Any idea...
Thanks
- 09-29-2010, 04:58 PM #3
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,380
- Blog Entries
- 7
- Rep Power
- 17
- 09-29-2010, 05:25 PM #4
Member
- Join Date
- Sep 2010
- Posts
- 56
- Rep Power
- 0
Hello....
This is my main class with main method.... that executes the JFrame....
Do I need to do some thing with the JFrame to end the process javaw.exe ??Java Code:import javax.swing.JFrame; import javax.swing.UIManager; import com.sun.java.swing.plaf.windows.WindowsLookAndFeel; public class WindSpeedAnalysis { /** * @param args */ public static void main(String[] args) { // Auto-generated method stub try { UIManager.setLookAndFeel(new WindowsLookAndFeel()); }catch (Exception e) { } JFrame f = new JFrame("Wind Speed Analysis"); f.setSize(800, 600); MainPanel mainPanel = new MainPanel(); f.add(mainPanel); f.setVisible(true); } }
Many Thanks......
- 09-29-2010, 07:23 PM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,380
- Blog Entries
- 7
- Rep Power
- 17
Read all about it in the API documentation of the setDefaultCloseOperation() method in the JFrame class.
kind regards,
Jos
- 09-30-2010, 01:47 AM #6
Member
- Join Date
- Sep 2010
- Posts
- 56
- Rep Power
- 0
Similar Threads
-
task
By boys21 in forum Advanced JavaReplies: 6Last Post: 05-28-2010, 01:59 PM -
Help with a task.
By checho in forum New To JavaReplies: 5Last Post: 01-14-2010, 11:29 AM -
getting running application from task manager
By gayathri_g in forum Threads and SynchronizationReplies: 3Last Post: 09-26-2009, 06:43 PM -
" javaw " not recognized
By ChosenOne in forum New To JavaReplies: 1Last Post: 09-23-2009, 12:57 PM -
javaw.exe running jbroker.exe?????
By fxRichard in forum Advanced JavaReplies: 3Last Post: 05-11-2009, 11:09 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks