Reputation: 11721
In my code I've used the java.nio.file
package extensively. However, my server has jre6, so I get a java.lang.ClassNotFoundException
exception.
I would like to add the java.nio.file
package as a dependency in Maven and package it within the jar created after Maven install.
Is this possible? If yes, how?
Upvotes: 1
Views: 2150
Reputation: 279950
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.
Upvotes: 5