You probably have a variable(FileReader,…) open, remember that you need to close them close()
if its a gui application call JFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
7
solved Java application closed but still the dist process running [closed]