cannot import namespace reducers

741 views
Skip to first unread message

Johannes

unread,
Jun 16, 2013, 4:08:18 PM6/16/13
to clo...@googlegroups.com
Hi,

trying
(require '[clojure.core.reducers :as r])
at the repl prompt the error message
CompilerException java.lang.ClassNotFoundException: jsr166y.ForkJoinPool, compiling:(clojure/core/reducers.clj:56:21) 

What is going wrong?

Johannes


Mayank Jain

unread,
Jun 16, 2013, 4:13:22 PM6/16/13
to clo...@googlegroups.com
Try

(:require '[clojure.core.reducers :as r])

i.e. :require


--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Regards,
Mayank.

László Török

unread,
Jun 16, 2013, 4:13:51 PM6/16/13
to clo...@googlegroups.com
Hi,

there are two ways to deal with this:

a) use Java 7


2013/6/16 Johannes <bra...@nordakademie.de>
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
László Török

László Török

unread,
Jun 16, 2013, 4:15:26 PM6/16/13
to clo...@googlegroups.com
.. sorry, gmail's new annoying keyboard shortcut

b) include the dependency to the forkjoin library [1] that is not included in Java6 

Las



2013/6/16 László Török <ltor...@gmail.com>



--
László Török

László Török

unread,
Jun 16, 2013, 4:17:00 PM6/16/13
to clo...@googlegroups.com
(require '[clojure.core.reducers :as r]) is correct.

(:require '[clojure.core.reducers :as r]) only works within the ns macro:
(ns 'yournamespace
  (:require '[clojure.core.reducers :as r]))

Las


2013/6/16 Mayank Jain <fires...@gmail.com>



--
László Török

Johannes Brauer

unread,
Jun 16, 2013, 4:43:45 PM6/16/13
to <clojure@googlegroups.com>
thank you, Las, for the quick tip. I will give Java 7 a try. I hope there are no problems on Mac OS 10.8.4

Johannes
Am 16.06.2013 um 22:15 schrieb László Török <ltor...@gmail.com>
:





Staatlich anerkannte private Fachhochschule
NORDAKADEMIE
Gemeinnützige Aktiengesellschaft
Köllner Chaussee 11
25337 Elmshorn

Vorstand:
Prof. Dr. Georg Plate (Vorsitzender), Dipl.-Ing. Jörg Meier (stellv. Vorstand)

Vorsitzender des Aufsichtsrats:
Dr. h.c. Hans-Heinrich Bruns

Sitz:
Elmshorn, Amtsgericht Pinneberg, HRB 1682

László Török

unread,
Jun 16, 2013, 4:50:44 PM6/16/13
to clo...@googlegroups.com
I'm on Java7 and OS X 10.8.4, no problem over here. :)


2013/6/16 Johannes Brauer <bra...@nordakademie.de>



--
László Török

Johannes Brauer

unread,
Jun 16, 2013, 4:58:05 PM6/16/13
to <clojure@googlegroups.com>
now, I've Java 7 installed and get another error message:
Exception namespace 'clojure.core.reducers' not found  clojure.core/load-lib (core.clj:5380)

any further hints?

Johannes
Am 16.06.2013 um 22:43 schrieb Johannes Brauer <bra...@nordakademie.de>
:

László Török

unread,
Jun 16, 2013, 5:16:12 PM6/16/13
to clo...@googlegroups.com
are you on clojure 1.5+ ?

If I launch the REPL using "lein repl"

and then

(require 'clojure.core.reducers)

it works ok for me.


2013/6/16 Johannes Brauer <bra...@nordakademie.de>



--
László Török

Johannes Brauer

unread,
Jun 16, 2013, 5:21:43 PM6/16/13
to <clojure@googlegroups.com>
I am on clojure 1.5.1 and I use lein repl.

But after 

(require '[clojure.core.reducers :as r])

I still get the same error message as with Java 6:
CompilerException java.lang.ClassNotFoundException: jsr166y.ForkJoinPool, compiling:(clojure/core/reducers.clj:56:21)

A second input of
(require '[clojure.core.reducers :as r])

generates the message:
Exception namespace 'clojure.core.reducers' not found  clojure.core/load-lib (core.clj:5380)

Johannes

Am 16.06.2013 um 23:16 schrieb László Török <ltor...@gmail.com>
:

László Török

unread,
Jun 16, 2013, 5:29:40 PM6/16/13
to clo...@googlegroups.com

Then you are having a path problem.
Your lein is still using java6
Check your $PATH and $JAVA_HOME env. variables.

As this not strictly clojure related, let's not spam the list, im happy to help off list

Sent from my phone

Keith Maynard

unread,
Jul 23, 2013, 9:02:23 PM7/23/13
to clo...@googlegroups.com
Please spam the list!!! I am sure anyone who receives that message is probably running Mac OS X 10.7.x or later and trying to unravel the mess between Java 6 and Java 7.  Please post recommendations. I finally got Eclipse to see the jdl1.7.0_25.jdk now how do I get the OS to replace the Apple installed 1.6.x?

Johannes Brauer

unread,
Jul 24, 2013, 2:43:44 AM7/24/13
to <clojure@googlegroups.com>
if I remember correctly I solved the problem by reinstalling Java 7 from Oracle. Thereafter my $JAVA_HOME points to:
/Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home

Johannes
Am 24.07.2013 um 03:02 schrieb Keith Maynard <kpma...@gmail.com>
:

You received this message because you are subscribed to a topic in the Google Groups "Clojure" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojure/k0_juEDn_Hc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojure+u...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages