Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的代码中,我java.nio.file广泛使用了这个包。但是,我的服务器有 jre6,所以我得到了一个java.lang.ClassNotFoundException例外。
java.nio.file
java.lang.ClassNotFoundException
我想将该java.nio.file包作为依赖项添加到 Maven 中,并将其打包在 Maven 安装后创建的 jar 中。
这可能吗?如果是,如何?
There is no way to use it, no. The java.nio.file package has dependencies on other source files and packages/libraries that are not freely available. You'll need to upgrade to java7 to use them.