Advertisement
Guest User

Untitled

a guest
Aug 17th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; second example, this one doesn't work
  2.  
  3. (ns foo            
  4.     (:require [org.apache.commons.io.FilenameUtils :as FileNameUtils])
  5. )
  6.  
  7. (defn print-extension
  8.     [path]     
  9.     (println
  10.         (FilenameUtils/getExtension path
  11.     ))
  12. )
  13.  
  14. ;;invocation below
  15. ;lein repl
  16. ; (load-file "/home/john/get-extension.clj")
  17. ;it  gives me "CompilerException java.io.FileNotFoundException: Could not locate org/apache/commons/io/FilenameUtils__init.class or org/apache/commons/io/FilenameUtils.clj on classpath: , compiling:(/home/varnie/thrash/get-extension.clj:1:1) "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement