1. Clojuresque
  2. Untitled project
  3. nrepl
Issue #3 invalid

clojureRepl task failure

Phil Groce
created an issue

When I run clojureRepl I get the following error:

* What went wrong:
Execution failed for task ':clojureRepl'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

The underlying JVM exits with the following error message:

:clojureReplException in thread "main" java.io.FileNotFoundException: Could not locate clojure/tools/nrepl/server__init.class or clojure/tools/nrepl/server.clj on classpath: 

I am attaching my build file and a transcript with the full stack trace. Here is the output of gradle --version:

Gradle 1.10

Build time:   2013-12-17 09:28:15 UTC
Build number: none
Revision:     36ced393628875ff15575fa03d16c1349ffe8bb6

Groovy:       1.8.6
Ant:          Apache Ant(TM) version 1.9.2 compiled on July 8 2013
Ivy:          2.2.0
JVM:          1.7.0_25 (Oracle Corporation 23.25-b01)
OS:           Mac OS X 10.9.1 x86_64

I apologize in advance if (when) this turns out to be a failure on my end.

Comments (3)

  1. Phil Groce reporter

    Ah. You answered this question in https://groups.google.com/d/msg/clojuresque/DRrtE_Nmomw/LQYkZxvFtnAJ. I needed the development dependency on org.clojure:tools.nrepl. This led me to another problem, which you have fixed in the source:

    Exception in thread "main" java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String

    The workaround is to configure clojureRepl to use a string as its port:

    clojureRepl {
      port = "8777"

    Sorry I was so thick. :)

  2. Meikel Brandmeyer

    Yes. This is already fixed. I will soon do a bugfix release.

    I'm sorry I couldn't reply earlier. In general: the google group is always good in case you have general questions and issues. So feel free to drop your concerns there.

  3. Log in to comment