Audioinputstream.close() not working (Unable to delete file)

Asked

Viewed 34 times

1

I’m having a problem with an Audioinputstream.

After making the adjustments I need, I give a AudioInputStream.close() (equivalent to InputStream.close()) so I can delete the file later.

But in doing so the following Exception is presented:

java.io.IOException: Unable to delete file: C:\tmp\documentos\3542\1455814425556.wav

And if I walk to the file directory and try to delete manually windows warns that it is being used by another process (java.exe).

Searching, I found that this bug was reported in openjdk jira (which is not what I currently use): https://bugs.openjdk.java.net/browse/JDK-8013586 but I could not understand if a solution was found.

A few more details that might be helpful:

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 solved?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.