Question: `/System/Library/Framework/JavaVM.framework` and `/System/Library/Java` have been deleted from my disk. I thought of making things back to normal by running the last Apple Java update ([Java for OS X Lion 2012-003 as of this writing](http://support.apple.com/kb/DL1515)) but unfortunately I'm facing the following error message:

```
A newer version of this package is already installed.

```

I still have java from oracle but I'd like to have the official one as well.

Any idea how I could get over this error message and proceed the install?

Answer: 
Indeed, there are some applications which will close completly when hitting the red button, while others will just close a window. I'm afraid you can't do nothing about it, as it's a developers choice.

What you can do is disable the Auto-Open, so the `Command`+`Q` shortcut will do exactly what you want.

To do so, just go to **System Preferences > General** and uncheck **"Restore windows when quitting and re-opening apps"**.
Do u want to say 'cmd+Q'instead of ctrl-q. 

& are u sure about your stmt "When I press all the instances of that program opens up the next time I open that application". 

As far as i know, if you quit application it will not open your last opened docs. It will just remain in "Open recent" option from File menu