I\'m using Java 1.7.0_40 on Red Hat Linux and I have the following code:
Path zipfile = Paths.get(filename);
FileSystem fs = FileSystems.newFileSystem(zipfil
It is problem of configuration for maven compiler in your pom file. Default version java source and target is 1.5, even used JDK has higher version.
To fix, add maven compiler plugin configuration section with higher java version, example:
org.apache.maven.plugins
maven-compiler-plugin
3.6.1
1.6
1.6
For more info check these links:
maven compiler
bug report