Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / May 2005

Tip: Looking for answers? Try searching our database.

Eclipse - background processes?

Thread view: 
brightoceanlight@hotmail.com - 16 May 2005 18:52 GMT
Hi,

When I use Eclipse, there seem to be a lot of java.exe background
processes that are created when I run programs from the compiler.  But
these background processes are not stopped when the programs are
stopped.  Would anyone know how to stop these background processes?

Thanks,

Gil
Roland - 17 May 2005 18:12 GMT
> Hi,
>
[quoted text clipped - 6 lines]
>
> Gil

Are you perhaps testing/running GUI programs? Each time you run an
application, Eclipse launches a new java executable. If you haven't
taken care of exiting the program when the last window of your app
closes, this java executable keeps running. This would also happen if
your application runs outside an IDE.
There are several ways to close down a GUI app properly, e.g. adding an
action listener to the app's close button
   closeMyAppBtn.addActionListener(new ActionListener() {
       public void actionPerformed(ActionEvent e) {
           System.exit(0);
       }
   });
or changing the default close operation of the application's frame
   JFrame myApp = createMyAppFrame();
   myApp.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

In Eclipse 3, you can use the red Terminate button of the Console View
(Window -> Show View -> Console) to end a running java executable. On
the Console View's toolbar there's also a button to switch between
consoles. Further, the Debug View in the Debug Perspective (Window ->
Open Perspective -> Other -> Debug) shows a list of launched java
applications (either running or already terminated).
Signature

Regards,

Roland de Ruiter
  ___      ___
 /__/ w_/ /__/
/  \ /_/ /  \



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.