Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8617761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:56:28+00:00 2026-06-12T05:56:28+00:00

I am trying to set up a lein build environment on Windows 7 haven

  • 0

I am trying to set up a lein build environment on Windows 7 haven copied files from a successful build environment on Linux. I have maven and the jdk installed along with lein.

HOME points to c:\Users\cnorton where the maven directories are located.

I get this error when trying to run lein repl or lein compile, and cannot figure out what I am doing wrong.

Caused by: java.lang.Exception: namespace ‘repl-test.core’ not found after loading ‘/repl_test/core’

Here is project.clj

(defproject repl-test "0.0.1-SNAPSHOT"
  :description "TODO: add summary of your project"
  :dependencies [[org.clojure/clojure "1.4.0"]
                 [org.clojure/clojure-contrib "1.2.0"]
                 [clojure-csv/clojure-csv "1.2.4"]
                 [org.clojure/tools.cli "0.1.0"]
                 [clj-http "0.1.3"]]
   :aot [repl-test.core]
   :main repl-test.core)

Here is the first part of src/repl_test/core.clj

(ns repl-test.core
  (:gen-class)
  (:use clojure.contrib.command-line)
  (:require [clojure.contrib.string :as cstr])
  (:require [clojure.contrib.trace :as ctr])
  (:require [clojure.string :as sstr])
  (:use clojure-csv.core))

I would be super helpful if someone could post as an answer a project.clj and the header of a core.clj that allows the project to be a main.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T05:56:30+00:00Added an answer on June 12, 2026 at 5:56 am

    I would avoid “-” in your folder names and namespaces, it is actually converted to “_” but not in all places.

    The following may or may not work for you. I got your skeleton project working with:

    (defproject st1 "1.0.0-SNAPSHOT"
    :description "TODO: add summary of your project"
      :dependencies [[org.clojure/clojure "1.4.0"]
                     [org.clojure/clojure-contrib "1.2.0"]
                     [clojure-csv/clojure-csv "1.2.4"]
                     [org.clojure/tools.cli "0.1.0"]
                     [clj-http "0.1.3"]]
                     :aot [repl_test.core]
                     :main repl_test.core)
    

    The same clj file as you have:

     (ns repl_test.core
      (:gen-class)
      (:use clojure.contrib.command-line)
      (:require [clojure.contrib.string :as cstr])
      (:require [clojure.contrib.trace :as ctr])
      (:require [clojure.string :as sstr])
      (:use clojure-csv.core))
    

    And I renamed the folder repl-test to repl_test with underscore.

    Then

     lein compile
    

    and

     lein run
    

    By curiosity, I also looked at clojure-csv, and they are using “-” everywhere, except in the folder name, so may have luck copying what they did.

    Also, quoting another SO question on clojure namespaces:

    “Also note that you musn’t use the underscore in namespace names or the hyphen in filenames and wherever you use a hyphen in a namespace name, you must use an underscore in the filename (so that the ns my.cool-project is defined in a file called cool_project.clj in a directory called my).”

    And from the Clojure Programming Wiki section on java packages:
    “Clojure respects Java naming conventions for directories and files, but Lisp naming conventions for namespace names. So a Clojure namespace com.my-app.utils would live in a path named com/my_app/utils.clj. Note especially the underscore/hyphen distinction.”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to set up LESS for CSS on my Windows box, I've installed ruby
Trying to set-up a git server on my local dev machine and have been
Im trying to set my tabs as a scrollbar. I have 6 tabs but
I have div tag containing several ul tags. If I trying set CSS properties
Trying to set up a cassandra cluster, but it tells me that I have
Im trying to set image in window.opener from open window like this: $(document).ready(function(){ $('a').click(function
Trying to set up a time card at work in Excel, have dates going
I have a 2-d array xx=[[a,1],[b,2],[c,3]] Now I'm trying to remove duplicate entries from
Im trying set the single table inheritance model type in a form. So i
Trying to set up a self signed certificate, for our intranet's web services site.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.