Wednesday, April 20, 2016

[NetBeans][Resolved] Cannot uninstall netbean 8.1 on Windows machine


Error Message:
It appears that the following instance of the NetBeans IDE is still running:
C:\Program Files|NetBeans 8.1_1
A lock file exists at C:\Users\xxx\AppData\Roaming\NetBeans\8.1\lock
Please close this NetBeans IDE prior to continuing with uninstallation
Netbean version 8.1
Windows 8



If you want uninstall NetBean but get this message in windos machine, firstly you should check is Netbean running in this machine by press "CTRL"+"ALT"+"DELETE" to call Task Manager and check if the name related to netBean existed there, if yes, right click and select "End Task" and do uninstallation again.

However for my case i can't find netbean is running in the Task Manager.


Solution

Step 1

You can visit the file installation directory which's shown in error message (it's C:\Users\xxx\AppData\Roaming\NetBeans\8.1\ in my case ). 

Step 2

Found out the file named "lock" and then delete it.

Step 3

Uninstall NetBean again.



Of course you can visit the log file shown at the error message to check out what's problem about, but what i found in log file is similar to the error message:



5 comments :

  1. Worked for me too windows 10 thx! i guess the lock file is some sort of children (delete) protecetion but netbeans should atleast have the courtesy to tell you that

    ReplyDelete
  2. thanks......your post is helpful

    ReplyDelete