Could not locate compojure in classpath
        Posted  
        
            by Xian
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Xian
        
        
        
        Published on 2010-05-26T00:21:18Z
        Indexed on 
            2010/05/26
            0:31 UTC
        
        
        Read the original article
        Hit count: 473
        
I am trying the various Getting started examples and I can get a basic hello world example working with basic HTML in the route as such
(ns hello-world
  (:use compojure.core ring.adapter.jetty)
  (:require [compojure.route :as route]))
(defroutes example
  (GET "/" [] "<h1>Hello World Wide Web!</h1>"))
(run-jetty example {:port 8080})
But when I attempt to use the html helpers like so
(ns hello-world
  (:use compojure ring.adapter.jetty)
  (:require [compojure.route :as route]))
(defroutes example
  (GET "/"
    (html [:h1 "Hello World"])))
(run-jetty example {:port 8080})
Then I get the following error
[null] Exception in thread "main" java.io.FileNotFoundException: Could not locate compojure__init.class or compojure.clj on classpath: (core.clj:1)
© Stack Overflow or respective owner