Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error unpacking capsule #14

Closed
draenor opened this issue Aug 17, 2014 · 6 comments
Closed

Error unpacking capsule #14

draenor opened this issue Aug 17, 2014 · 6 comments
Labels

Comments

@draenor
Copy link

draenor commented Aug 17, 2014

Version 0.6.0 and 0.6.1 throws an error in Windows 8.1 when running capsule java -jar foo.jar

java.lang.RuntimeException: Exception while extracting jar C:\git\foo\target\foo-0.1-SNAPSHOT-indexsvc.jar to app cache directory C:\Users\Johan\AppData\Local\capsule\apps\foo_0.1-SNAPSHOT
    at Capsule.resetAppCache(Capsule.java:688)
    at Capsule.ensureExtractedIfNecessary(Capsule.java:398)
    at Capsule.prepareForLaunch(Capsule.java:387)
    at Capsule.launch(Capsule.java:370)
    at Capsule.main(Capsule.java:190)
Caused by: java.nio.file.DirectoryNotEmptyException: C:\Users\Johan\AppData\Local\capsule\apps\foo_0.1-SNAPSHOT
    at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:266)
    at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
    at java.nio.file.Files.delete(Files.java:1123)
    at Capsule.delete(Capsule.java:1661)
    at Capsule.resetAppCache(Capsule.java:685)
    ... 4 more

Deleting the directory does not resolve the problem, downgrading to 0.5.0 however does.

@pron
Copy link
Contributor

pron commented Aug 17, 2014

Can you list the full contents of the apps\foo_0.1-SNAPSHOT directory after this failed attempt?

@pron pron closed this as completed in 85079de Aug 17, 2014
@draenor
Copy link
Author

draenor commented Aug 17, 2014

Right, I were just about to suggest something like that but I see you already have a fix for it, nice 👍

@pron
Copy link
Contributor

pron commented Aug 17, 2014

Can you try it now with 0.7.0-SNAPSHOT?
(I'm going to release 0.7.0 in a day or two)

@pron pron added the bug label Aug 17, 2014
@draenor
Copy link
Author

draenor commented Aug 17, 2014

That seems to have done the trick!

@pron
Copy link
Contributor

pron commented Aug 17, 2014

I hereby appoint you Capsule's Windows Tester in Chief.

@draenor
Copy link
Author

draenor commented Aug 17, 2014

Accepted kneels ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants