File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Close Mozilla, how??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Close Mozilla, how???" Watch "Close Mozilla, how???" New topic

Close Mozilla, how???

Daniel Botelho

Joined: Nov 13, 2004
Posts: 6

I can open an instance of mozilla browser by execute this code:

But how can I close the Mozilla opened by this Process ???
I've already tried using:
, but it didn't work...

Can anyone help me doing this?

Thanks and best regards,
Daniel Botelho
Petr Blahos
Ranch Hand

Joined: Apr 28, 2004
Posts: 131
Hi Daniel,

Is it on Unix? I think on most unixes, mozilla is a script that
at the end runs mozilla-bin (or generally does something). So
when you try to destroy the process, it actually doesn't run anymore

You might try running directly mozilla-bin, which I don't recommend.
I know that this isn't going to be very helpful, but can't you just
let it run and leave it to the user?


Get a better web browser:<br /><a href="" target="_blank" rel="nofollow"></a>
I agree. Here's the link:
subject: Close Mozilla, how???
It's not a secret anymore!