I'm having a problem with an AudioInputStream.
After making the adjustments I need, I give AudioInputStream.close()
(equivalent to InputStream.close()
) so I can delete the file later.
But doing so the following exception is displayed:
java.io.IOException: Unable to delete file: C:\tmp\documentos4255814425556.wav
And if I go to the directory of the file and try to manually delete windows it warns that it is being used by another process (java.exe).
Searching, I noticed that this bug was reported in the openjdk jira ( which is not what I currently use ): link but I could not understand if a solution was found.
Here are some things you might find useful:
Versão do Java: 1.8.0_60
Versão do JDK: 1.7.0_79
SO: Windows 10
Does anyone have any idea how this can be resolved?