edmund-wagner / junrar

plain java unrar util (former sf project)
Other
186 stars 90 forks source link

Archive can't be deleted after extracting #28

Closed u09068ee closed 10 years ago

u09068ee commented 10 years ago

Simulation Steps:

  1. Use extractArchive method of the ExtractArchive Class to extract the .rar file.
  2. Once extracted, try to delete the original archive.
  3. It gives error that the archive is open in java (TM)**
u09068ee commented 10 years ago

Reason:

Workaround:

Solution:

try {
      arch.close(); 
} catch (IOException e) {
    System.err.println("Caught IOException: " + e.getMessage());
}