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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:06:52+00:00 2026-05-27T23:06:52+00:00

I try to learn a bit of Clojure because the language looks nice. But

  • 0

I try to learn a bit of Clojure because the language looks nice.
But it seems that there is no info anywhere on how to install/use libraries like for example the clojure.math.numeric-tower.

For now I run the REPL by typing this in my Linux shell:

java -cp ~/Clojure/clojure-1.3.0/clojure-1.3.0.jar  clojure.main

I downloaded the numeric-tower jar, and put it everywhere. I have modified the -cp option in every possible way. I have put the numeric_tower.clj file everywhere.
It still doesn’t work.

What’s the way to use the libraries?

  • 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-27T23:06:52+00:00Added an answer on May 27, 2026 at 11:06 pm

    I had this same issue yesterday (also as a newcomer to Clojure). From my understanding, between Clojure 1.2 and 1.3 they split out many of the contrib libraries into separate projects so that they could be managed more easily. And shrink the core of what Clojure is.

    The easiest way to accomplish what you’re trying to do is through leiningen (I got this answer from technomancy in the #clojure IRC channel yesterday evening). The recommendation is to create a “playground” project using leiningen that you can play around in and learn Clojure.

    So, create a playground project with:

    lein new playground
    

    Modify the project.clj file to include:

    [org.clojure/math.numeric-tower "0.0.1"]
    

    as a dependency. I was told that http://search.maven.org/ is the easiest way to find out which is the most up-to-date version of a particular library.

    Then, run

    lein deps
    

    to pull in the jars. Now you’re ready to

    lein repl
    

    to get going.

    Once the repl is started, pull in numeric-tower:

    (require '[clojure.math.numeric-tower :as math])
    

    Then you can do your expt call:

    (math/expt 4 6) ;; yields 4096
    

    Hope that helps!

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

Sidebar

Related Questions

After I've seen this PDC session I wanted to try to learn a bit
i using word press, and i try to learn it, but is see the
I am working on an app to try and learn a bit more about
There seems to be a lot to learn about multithreaded programming and it's all
I'm just starting to learn web dev, but got myself a bit confused when
Is it realistic to try and learn and code a Flex 3 application without
Bear with me as I try to learn more about .htaccess redirect rules -
I am doing the below test to try and learn more about LINQ to
I try to repeat and learn more advanced uses and options when cutting trees
On a quest to learn a bit about Python and sockets I'm writing a

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.