noprompt / lein-garden

Leiningen plugin for compiling Garden stylesheets.
The Unlicense
84 stars 17 forks source link

getting a: java.lang.ClassNotFoundException: java.nio.file.Files #11

Closed BorisKourt closed 10 years ago

BorisKourt commented 10 years ago

Copied your blog setup that was linked in another issue here, getting this error on both once and auto compilation options.

Unfortunately not experienced enough with java errors to know what the problem is.

Here is the full stack on pastebin: http://pastebin.com/Yu73HyTK

noprompt commented 10 years ago

Your Java version is old. java.nio.file.Files is available in versions >= 1.7.0. Here's my Java version for reference:

java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

Should be an easy fix. :smile:

BorisKourt commented 10 years ago

Thanks! Would have taken forever to figure that out.

This was a bit more convoluted on Mac, turns out that:

Oracle's installer puts java inside the /Library/Internet Plug-Ins/JavaAppletPlugin.plugin. And it doesn't overwrite /usr/bin/java.

Which is why I was stuck on 1.6 when I had installed the latest :/

The stack answer that helped

noprompt commented 10 years ago

Awesome! Glad I could help.