title: The action can't be completed because the file is open in Java Platform SE Binary?
body: <p>I have written an runnable JAR file for a simple barcode generator application. When I export it from eclipse to my desktop, run it and then decide to delete it, it pops up with: <a href="https://i.stack.imgur.com/SepPf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SepPf.png" alt="Error in deleting"></a></p>
  
  <p>What can I write in my source code that would prevent this? A way of killing of any threads that may be lingering? Or any sessions held in the JVM?</p>
  
  <p>Any help would be appreciated,</p>
  
  <p>Thank you.</p>