I am trying to get the last modified time from a file in Clojure, by executing a Java command. By using java.io.File.lastModified I am supposed to be able to get the UNIX-time, this does not work by execution of the script or in the REPL.
My code is: (java.io.File.lastModified "/home/lol/lolness.txt")
and my error is: java.lang.ClassNotFoundException: java.io.File.lastModified (NO_SOURCE_FILE:24)
(java.io.File.separator) works, however.
EDIT: Clojure version 1.2.0-master-SNAPSHOT Java version OpenJDK 1.6.0