How to stop a process that i have started in my prog to stop

public class stopproc {
     public static void main(String args[]){
Runtime rt = Runtime.getRuntime();
try{
Process process = rt.exec("start notepad");
//Thread.sleep(1000);
//process.destroy();
}catch(Exception ex){}
The above is the code where i am starting a notepad and want to destroy it..but it is not working..can u tell me why

//process.destroy();
That won't do anything because it is a comment, not a line of code.

Similar Messages

  • Can't transfer pictures, can't stop the process that I have already stopped, can't turn off the computer. Please help

    Hello! I got my computer today and then I wanted to transfer all my pictures from my Iphone to the computer so I could delete the pics on my phone. So I plugged the phone in and started the process. Suddenly it stopped to transfer pictures and was standing still for a long time so I canceled the transferring. Then it asked if I wanted to keep the pictures that were already transferred so I confirmed it twice but the computer didn't react so then I clicked on delete. So I tried to start the process again by plugging the phone in and out one time. I clicked on transfer all but it was saying that they have to finish the first one first that I had canceled. So then I tried with my camera and it still said the same thing. I have tried to close Iphoto but that didn't work either. I can't even turn the computer off because then it says that I have to close Iphoto and I couldn't do that. So everything just stands still right know and I really need to transfer the pictures and I need to turn off the computer. Sorry for the long question but I really need help, hope the question is understandable / Linn

  • How do i stop two processes that are running in activity monitor

    how do i stop two processes that are running in Activity Monitor took one out of trash and it says preparing to move desktop still running with another one been running for hrs now want to stop these many thanks jen.

    Select each one and Force Quit it.
    But be careful there are many processes that are run by the OS that if quit will cause problems possibly even crash the system.
    regards

  • How to stop a process (that is executing)

    Hi all
    my question is How to stop a process that is executing ?
    some other languages has a function called yield() in java how I can do it.
    thanks

    You can tell a Thread to yield - That is, cause the currently executing thread object to temporarily pause and allow other threads to execute.

  • TS4124 how do sync a book that I have added as music to itunes on my iMac and then listen to this book on my iPhone.  Itunes says the icloud status is waiting so the song(book) is in the process of being matched but has not yet been processed.  (no help t

    how do sync a book that I have added as music to itunes on my iMac and then listen to this book on my iPhone.  Itunes says the icloud status is waiting so the song(book) is in the process of being matched but has not yet been processed.  (no help there)

    Hi,
    Why are you trying to add a book as music? It will not match as this only applies to music files. It will be uploaded if the bit rate is 96 Kbps or greater.
    You should change media type to audiobook and you will be able to sync by wifi or USB.
    Jim

  • How can I use slideshows that I have created in Aperture 3 (complete with captions and music tracks) in my DVD through iDVD version 7.1.2 ?  iDVD Manuals that I have read seem to avoid explaining that export process.  Any advice will be greatly appreciate

    How can I use slideshows that I have created in Aperture 3 (complete with captions and music tracks) in my DVD through iDVD version 7.1.2 ?  iDVD Manuals that I have read seem to avoid explaining that export process. I'm using Aperture 3, Mac OS X (10.7.5), on a Any advice will be greatly appreciated.  Anthony Zasadney, Bolingbrook IL.

    Export the slideshow from Aperture as a .mov file and import it into iDVD.

  • My project is stuck in a loop. How can I stop it so that I can start a new project?

    My project is stuck in a loop. How can I stop it so that I can start a new project?

    use force quit - the keyboard command is      cmd alt esc

  • How can I save photos that I have modified in Photoshop Elements to my computer hard drive?

    How can I save photos that I have modified in Photoshop Elements to my computer hard drive folders?

    When finished editing click File->Save/Save As and you can either overwrite the original file or rename it and save as new file keeping original intact.
    You can find more info on saving and various settings here http://help.adobe.com/en_US/photoshopelements/using/WS287f927bd30d4b1f89cffc612e28adab65-7 fda.html#WS287f927bd30d4b1f89cffc612e28adab65-7fd7
    Thanks,
    Garry

  • How can I use apps that I have purchased from Apps Store for Mac on my iPad2?

    how can I use apps that I have purchased from Apps Store for Mac on my iPad2?

    Thanks, varjak, it is too easy to fall into use of jargon assuming everyone understands what it means.
    One additional point in all of this, not all "iDevice" apps run on every "iDevice".  Some are customized for a specific device, or class of devices such as the iPod/iPhone with their smaller screen.  Others for just the iPads for their larger screens.  So the user needs to be sure they are getting an app that will work on their specific device.
    And to Phoneboone, you do need to purchase the app again if it is for a different class of equipment.  When you are looking at apps such as iWorks for the Mac and iWorks components for the iPad, the iPad versions are very inexpensive.  Pages is only $10 (US) which is really cheap for such a good word processor that reads and saves in the MS Word format.
    Anyway, search for what you need and just enjoy the convenience of so many options for apps.

  • How do I get CD that I have loaded to my itunes to transfer to a new computer

    How do I get CD that I have loaded to my itunes to transfer to a new computer?

    You setup Home Sharing between those computers and transfer it across
    Understanding Home Sharing
    TroubleShooting Home Sharing

  • How do i delete meetings that I have been invited to from my iphone (without going to my PC)?

    How do I delete meetings that I have been invited to from my iphone (without using PC)?

    You cannot delete an event that you did not create.  This does not work.

  • Does any one know how to "reset" my password that I have to plug into my mac-book pro system before I download a file?

    Does any one know how to "reset" my password that I have to plug into my mac-book pro system before I download a file?

    Reset Password
    Follow the instructions in this article.
    http://pondini.org/OSX/Password.html
    Best.

  • How to delete any backups that i have ever created ?

    how to delete any backups that i have ever created ?

    On your computer:
    In iTunes go to Edit/Preferences/Devices and you'll see a list of all backups on your computer. Click on the ones you would like to delete.
    On your phone:
    In case you are backing up to iCloud, go to Settings/iCloud/Storage and Backup/Manage Storage/Backups/ tap on the device and scroll down to the bottom of the page and hit "delete backup"

  • How do i put photos that i have got on my Laptop back on to my Nikon Camera?

    How do i put photos that i have got on my laptop back on to my Nikon Camera?

    I've never tried that. I really don't know if it can be done - try the iPhoto discussion board at https://discussions.apple.com/community/ilife/iphoto.
    Good luck,
    Clinton

  • HT5035 I will like to know how to get the money that i have in my  Itunes acc to get it off and buy a cd with it

    I will like to know how to get the money that i have in my itunes acc how to used it up to buy a cd with it

    LatachaM_VZW wrote:
    If the incorrect PIN code is entered too many times, a PIN Unlock Key must be obtained from Verizon Wireless at 908-559-4899 if you are outside of the United States and 800-922-0204 or *611(send) from your mobile number inside the United States..
    The SIM PIN option is only available when the handset is in GSM / UMTS mode. Refer to Network Mode Setting for further assistance.
    Thank you, LatachaM_VZW
    Are you talking about the PUK code (when the PIN for the SIM has been wrong too many times)?  The OP is talking about network unlock, and is using a foreign SIM.   Global Services certainly wouldn't have the unlock code for a SIM that isn't theirs.
    I have heard that if you do enter the incorrect network unlock code too many times, the phone becomes permanently locked (i..e cannot be unlocked even with a valid unlock code) but not everyone agrees that this is true for all phones.
    Jax's post above really says it all, you will need to search the web for a service that will unlock this Motorola phone.  In doing so, you might find a number of threads that say the Global has to be activated in the US before an unlock code will work.  Others were able to unlock without this. 

Maybe you are looking for