Mehdi Ijadnazar
Mehdi Ijadnazar

Reputation: 4971

how to add a java package to my java library?

I have 1.6.0_22 version of Java installed on Mac OS X. I was trying to write a file operation program and wanted to use java.nio.file package's 'Path' class but I can't find that package? How can I add it to my project?

Upvotes: 1

Views: 600

Answers (1)

Sean Patrick Floyd
Sean Patrick Floyd

Reputation: 299048

Path is only available in Java 1.7:

From the JavaDocs:

Since: 1.7

Upvotes: 1

Related Questions