Java memory-calculator will fail if you have a directory with a ".jar" extension #160
Closed
3 tasks
Labels
type:bug
A general bug
What happened?
Run an app image.
Classes does not seem to take into account the actual file type, it just looks at the extension. If you name a folder
foo.jar
it'll try to process it as a JAR file, which fails because you cannot unzip a directory.I could see the following two checks being helpful:
2a. Check that the file is actually a zip file before trying to extract it.
or
2b. Check the error. If it's complaining that the file is not a zip, ignore the error and continue on.
Checklist
The text was updated successfully, but these errors were encountered: