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

  • Home
  • SEARCH
  • 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 8420353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:52:10+00:00 2026-06-10T02:52:10+00:00

For a Lein project called myproject, I’ve created a file core.clj in the myproject/test/

  • 0

For a Lein project called myproject, I’ve created a file core.clj in the myproject/test/ directory.

(ns myproject.test.core
  (:use clojure.test))
  ;;tests follow

When I try to run the test with “lein test”, it fails with the error:

Exception in thread "main" java.io.FileNotFoundException: Could not locate myproject/test/core__init.class or myproject/test/core.clj on classpath: 
  • 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-10T02:52:12+00:00Added an answer on June 10, 2026 at 2:52 am

    From your error, it appears your directory structure is different than what I have used. lein wants core.clj (for test) in the directory that I have posted below. Here is my test directory path that was set up by lein new util

    ~/projects/clojure/util/test/util/test$
    

    Here’s the project.clj file, just in case you need it for further clarity.

    (defproject util "1.0.4-SNAPSHOT"
      :description "A general purposes Clojure library"
      :dependencies [[org.clojure/clojure "1.4.0"]
                     [clojure-csv/clojure-csv "1.3.2"]
                     [org.clojure/tools.cli "0.1.0"]]
      :aot [util.core]
      :omit-source true)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

lein new caching I then go in and edit my project.clj file like so.
I just added clojure.core.cache 0.6.1 to my project, did a lein deps, followed the
I am starting lein new project in clojure and want to use the goose
When I start a lein repl for a Clojure project, the namespace clojure.repl is
My project.clj file looks like this (defproject cljs-template 0.1.0-SNAPSHOT :description FIXME: write this! :url
The point of this question is to clear up confusion about Clojure project.clj dependencies
This is my project.clj file so far: (defproject raj 0.0.1-SNAPSHOT :description FIXME: write description
this is my project.clj file: (defproject org.github.pistacchio.deviantchecker 0.9.0 :description A one page application for
In a new fresh leiningen project, with its core.clj containing (defn show-cmd [] (->
I ran lein uberjar on my project and it created the corresponding jar files.

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.