Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. java.nio.file.FileSystemNotFoundException
  2. at com.sun.nio.zipfs.ZipFileSystemProvider.getFileSystem(ZipFileSystemProvider.java:171)
  3. at com.sun.nio.zipfs.ZipFileSystemProvider.getPath(ZipFileSystemProvider.java:157)
  4. at java.nio.file.Paths.get(Unknown Source)
  5. at com.sora.util.walltoggle.pro.WebViewPresentation.setupTempFiles(WebViewPresentation.java:83)
  6. ....
  7.  
  8. 81. URI uri = getClass().getResource("/webViewPresentation").toURI();
  9. //prints: URI->jar:file:/C:/Users/Tom/Dropbox/WallTogglePro.jar!/webViewPresentation
  10. 82. System.out.println("URI->" + uri );
  11. 83. Path source = Paths.get(uri);
  12.  
  13. final Map<String, String> env = new HashMap<>();
  14. final String[] array = uri.toString().split("!");
  15. final FileSystem fs = FileSystems.newFileSystem(URI.create(array[0]), env);
  16. final Path path = fs.getPath(array[1]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement