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 6204967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:11:21+00:00 2026-05-24T05:11:21+00:00

While using Leiningen, I got the following abrupt error: Exception in thread main java.lang.NoSuchMethodError:

  • 0

While using Leiningen, I got the following abrupt error:

Exception in thread “main” java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.getFileUtils()Lorg/apache/tools/ant/util/FileUtils; (core.clj:1)

I found the following answer at https://github.com/technomancy/leiningen/issues/194:

if ant version 1.6.1 is included in a project, lein fails. Autodoc "0.7.1" includes ant version 1.6.1.

a work around is to exclude ant.1.6.1 in the project.clj.    <--- *1*
But a better solution is changing the order of lein classpath.

from bin/lein   <--- *2*
CLASSPATH="$CLASSPATH:$LEIN_LIBS:$LEIN_DIR/src:$LEIN_DIR/classes:$LEIN_DIR/resources:$LEIN_JAR"
**changes to : **
CLASSPATH="$LEIN_LIBS:$LEIN_DIR/src:$LEIN_DIR/classes:$LEIN_DIR/resources:$LEIN_JAR;$CLASSPATH"

I read the Leiningen tutorial at https://github.com/technomancy/leiningen/blob/master/doc/TUTORIAL.md and the sample project.clj file at https://github.com/technomancy/leiningen/blob/stable/sample.project.clj, but I still have the following questions:

1) At the line marked 1, above, I can’t tell how to exclude a specific version of a jar file.

2) At 2, above, exactly what is bin/lein? My Leiningen project doesn’t have a bin directory, and Leiningen itself is a script, so there’s no bin directory there?

Many thanks for your help.


Addendum 8/6/11: For the specific problem with Autodoc, I found a fork of Autodoc that fixes the problem for me. Just add “[org.clojars.weavejester/autodoc “0.9.0”]” to project.clj > defproject > :dev-dependencies clause. Then, from the command line (with the directory equal to the root of your leiningen project), execute ‘lein autodoc’, and wait for a while.

  • 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-05-24T05:11:22+00:00Added an answer on May 24, 2026 at 5:11 am

    In answer to (1) I’m not sure if he’s saying that you need to exclude a specific version of Ant, but more likely that you can fix the issue by excluding the version of Ant that’s pulled in by Autodoc (no matter what version). You could try something like:

    (defproject my-project "1.0.0"
      :dependencies [[org.clojure/clojure "1.2.0"]
                     [org.clojure/clojure-contrib "1.2.0"]]
      :dev-dependencies [[autodoc "0.7.1" :exclusions [org.apache.ant/ant]]])
    

    I’ve only excluded it in dev-dependencies here, assuming that Autodoc is only to be used during a build.

    For (2), you are correct, Leiningen is a script, but in the issue report, the author is suggesting an edit to the Leiningen script to fix the issue by changing the order of directories referenced in Leiningen’s CLASSPATH.

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

Sidebar

Related Questions

While using PHP cli in ubuntu i got apache as web server i cant
While using a third party dll I was getting the following exception: exePath must
while using the following constructor $this->pdo = new PDO ($this->source, $this->username, $this->password); if I
While using Java's switch case, it excepts only char and int, but I want
While using inner join on Pro*C I am getting the below error: PCC-S-02201, Encountered
While using django.core.paginator import ObjectPaginator, I'm getting this error: NeedIndexError: The built-in indices are
While using some regex in C#, I'm facing the following problem : Consider this
While using xmlstarlet on web pages, I most of time faced entity reference error.
While using this line of code, I get the error CS1040: Preprocessor directives must
While using the BoneCP connection pooling, I came across the following confusions and would

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.