Extract rar file through Junrar and then delete the archive
<p>I'm using <a href="https://github.com/junrar/junrar" rel="nofollow">junrar</a> but I have a problem to delete the archive after extraction.
This is the code:</p>

<pre><code>ExtractArchive extractArchive = new ExtractArchive();  
extractArchive.extractArchive(new File(archiveFilePath), new File(destDirectory));
</code></pre>

<p>after this code I can't delete file associated to archiveFilePath. 
I tried both <code>new File(archiveFilePath).delete();</code>  and <code>apache commons io</code></p>

<pre><code>FileDeleteStrategy.FORCE.delete(new File(archiveFilePath));
</code></pre>

<p>but I receive false or one exception because file is used from another process.
Someone has had the same problem with this library? Can I remove the file in other ways? Thanks</p>

<p>Here there is a confirm of the issue:
<a href="https://github.com/edmund-wagner/junrar/issues/28" rel="nofollow">https://github.com/edmund-wagner/junrar/issues/28</a></p>