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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:39:15+00:00 2026-05-10T22:39:15+00:00

When I try to run the following code (from the REPL) in Clojure: (dotimes

  • 0

When I try to run the following code (from the REPL) in Clojure:

(dotimes [i 5]   (.start    (Thread.     (fn []       (Thread/sleep (rand 1000))       (println (format 'Finished %d on %s' i (Thread/currentThread))))))) 

I get the following error:

java.lang.Exception: Unable to resolve symbol: i in this context clojure.lang.Compiler$CompilerException: NO_SOURCE_FILE:6: Unable to resolve symbol: i in this context         at clojure.lang.Compiler.analyze(Compiler.java:3713) 

What am I doing wrong here?

  • 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. 2026-05-10T22:39:15+00:00Added an answer on May 10, 2026 at 10:39 pm

    Your code works for me using the latest SVN (1144).

    user> (dotimes [i 5] (.start (Thread. (fn [] (Thread/sleep (rand 1000)) (println (format 'Finished %d on %s' i (Thread/currentThread)))))))  Finished 0 on Thread[Thread-16,5,main] Finished 4 on Thread[Thread-20,5,main] Finished 3 on Thread[Thread-19,5,main] Finished 1 on Thread[Thread-17,5,main] Finished 2 on Thread[Thread-18,5,main] 

    Are you using the September 16 release? You almost have to use the SVN version of Clojure. It’s changing way too fast.

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

Sidebar

Ask A Question

Stats

  • Questions 61k
  • Answers 61k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer If all you want is the UNIX command line tools… May 11, 2026 at 9:42 am
  • added an answer apropos yeilds the command locale 10.4 and later though Edit:… May 11, 2026 at 9:42 am
  • added an answer A very useful library for spiders and bots: htmlunit May 11, 2026 at 9:42 am

Related Questions

When I try to run the following code (from the REPL) in Clojure: (dotimes
When I try to run a .NET assembly ( boo.exe ) from a network
When I try to run a particular stored procedure on my MS SQL 2005
I get a generic failure when I try to run: saslpasswd2 username This was
I have installed CherryPy 3.1.0,. Here is what happens when I try to run
When I try to do that I get the following error: Changes to 64-bit
When I try to print a string in a Windows console, sometimes I get
When I try to create a SQL Server Login by saying CREATE LOGIN [ourdomain\SQLAccessGroup]
When I try to use an ssh command in a shell script, the command
When I try to do any svn command and supply the --username and/or --password

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.