Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Close Mozilla, how???

 
Daniel Botelho
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
anyway.

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?

Petr
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic