Re: Could not locate

2021-01-05 Thread 'Alan Forrester' via Clojure
On 5 Jan 2021, at 10:50, Yang Xu  wrote:

> I am begin with clojure, when I invoke clojure from java. The "Could not 
> locate cljcore/core__init.class, cljcore/core.clj or cljcore/core.cljc on 
> classpath" is arised.
> 
> (defproject cljcore "0.1.0-SNAPSHOT"
> :description "FIXME: write description"
> :url "http://example.com/FIXME";
> :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
> :url "https://www.eclipse.org/legal/epl-2.0/"}
> :dependencies [[org.clojure/clojure "1.10.1"]
> [org.clojure/core.logic "1.0.0"]
> ]
> :repl-options {:init-ns cljcore.core}
> :java-source-paths
> ["java"]
> :source-paths
> ["src"]
> :test-paths
> ["test”]
> )

Have you installed leiningen?

Alan Forrester

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/864DF118-2E83-41F4-885E-7161708910BB%40googlemail.com.


Could not locate

2021-01-05 Thread Yang Xu
I am begin with clojure, when I invoke clojure from java. The "Could not 
locate cljcore/core__init.class, cljcore/core.clj or cljcore/core.cljc on 
classpath" is arised.

(defproject cljcore "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME";
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "https://www.eclipse.org/legal/epl-2.0/"}
:dependencies [[org.clojure/clojure "1.10.1"]
[org.clojure/core.logic "1.0.0"]
]
:repl-options {:init-ns cljcore.core}
:java-source-paths
["java"]
:source-paths
["src"]
:test-paths
["test"]
)





-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/3d97cb48-fe5a-4ce0-83f9-705758709a83n%40googlegroups.com.


Re: Plain clojure 1.9 fails with Could not locate ... clojure/spec/alpha.clj on classpath. in Kubuntu 18.04

2018-05-21 Thread Jesús Gómez
g/guides/getting_started page.
>>>>> >
>>>>> > 1. Use the new command line clj tools (linux install instructions on
>>>>> that
>>>>> > page) - this will fetch the deps for you.
>>>>> > 2. Do a local build into a single standalone jar (note this is a
>>>>> custom jar
>>>>> > containing deps and is different than just the artifact you
>>>>> downloaded).
>>>>> > 3. Use a build tool like leiningen or boot that will fetch the deps
>>>>> for you.
>>>>> > 4. Download clojure and its deps manually and build your own custom
>>>>> > classpath. (not recommended)
>>>>> >
>>>>> >
>>>>> > On Monday, May 21, 2018 at 11:17:37 AM UTC-5, Jesús Gómez wrote:
>>>>> >>
>>>>> >> Simply: 1.7 works but 1.9 not.
>>>>> >>
>>>>> >> Test:
>>>>> >>
>>>>> >> $ # Download Clojure 1.7, 1.8 and 1.9 jars
>>>>> >> $ seq 7 9 | xargs -L1 -I% wget
>>>>> >> http://repo1.maven.org/maven2/org/clojure/clojure/1.%.0/
>>>>> clojure-1.%.0.jar
>>>>> >> $ seq 7 9 | xargs -L1 -I% java -jar clojure-1.%.0.jar -e '"1.%.0 is
>>>>> >> Working"'
>>>>> >> "1.7.0 is Working"
>>>>> >> "1.8.0 is Working"
>>>>> >> Exception in thread "main" java.lang.ExceptionInInitializerError
>>>>> >> ...
>>>>> >> Caused by: java.io.FileNotFoundException: Could not locate
>>>>> >> clojure/spec/alpha__init.class or clojure/spec/alpha.clj on
>>>>> classpath.
>>>>> >> ...
>>>>> >>
>>>>> >> I've been trying to learn Clojure, so I've installed it in many
>>>>> ways:
>>>>> >>
>>>>> >>  * Lein - Not working due some SSL credential
>>>>> >>  * boot vian nix - Working but ... I don't remember the why
>>>>> already...
>>>>> >> something related with CIDR?... not important for this post anyways
>>>>> >>  * via apt - Working but I can't make a simple clojure -m hello to
>>>>> work
>>>>> >>
>>>>> >> So I tried to understand the basics (No maven, no 3rd parties,
>>>>> etc.) and
>>>>> >> found the mentioned problem.
>>>>> >>
>>>>> >> I was expecting it to work flawless and to not be affected on what
>>>>> I got
>>>>> >> already installed in my system, but probably is the fact I
>>>>> installed clojure
>>>>> >> via APT, which installed 1.9.0, that is causing the jar for 1.9.0
>>>>> to fail
>>>>> >> and not the others.
>>>>> >>
>>>>> >> In any case... 1.9.0 jar is not working for me.
>>>>> >>
>>>>> >> Thank you.
>>>>> >
>>>>> > --
>>>>> > You received this message because you are subscribed to the Google
>>>>> > Groups "Clojure" group.
>>>>> > To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
>>>>> > For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Clojure" group.
>>>>> To post to this group, send email to clojure@googlegroups.com
>>>>> Note that posts 

Re: Plain clojure 1.9 fails with Could not locate ... clojure/spec/alpha.clj on classpath. in Kubuntu 18.04

2018-05-21 Thread Justin Smith
oh, it seems that fix is for yet another ubuntu ca-certs java bug, I hadn't
expected there were more

On Mon, May 21, 2018 at 1:25 PM Andy Fingerhut 
wrote:

> Thanks, Justin.
>
> I tried the commands you suggested on an Ubuntu 18.04 LTS system, and
> 'lein repl' still fails the same way afterwards when using Ubuntu's OpenJDK
> installation (and still succeeds when using Oracle's JDK installation).
>
> Andy
>
> On Mon, May 21, 2018 at 1:04 PM, Justin Smith 
> wrote:
>
>> I should have been more specific. Just uninstalling leaves old configs
>> around, and fixing this requires a full purge of the package.
>>
>> these are my steps on a debian system:
>>
>> $ sudo dpkg --purge --force-depends ca-certificates-java
>> $ sudo apt-get install ca-certificates-java
>>
>>
>> sourced from this stackoverflow answer
>> https://stackoverflow.com/a/33440168
>>
>> On Mon, May 21, 2018 at 12:28 PM Andy Fingerhut 
>> wrote:
>>
>>>
>>> Jesús:
>>>
>>> Agreed that this issue is frustrating.  It doesn't necessarily help you
>>> here, but realize that this issue appears like it might be unique to Ubuntu
>>> 18.04's OpenJDK installations.
>>>
>>> This issue did not occur with earlier versions of Ubuntu that I am aware
>>> of.
>>>
>>> Andy
>>>
>>> On Mon, May 21, 2018 at 10:29 AM, Jesús Gómez  wrote:
>>>
>>>> I followed the Getting Started guide and nothing worked well, except
>>>> for the boot with nix installation.
>>>>
>>>> The clj tools Linux instructions failed the same way the lein one
>>>> failed: Error with some certs [1]
>>>> I've been told that this problem could be solved if I install Oracle
>>>> Java instead of using OpenJDK. I don't want to do that.
>>>>
>>>> I avoided the local build instructions because it was going to require
>>>> maven. I don't want to use it for now.
>>>>
>>>> So, for now I'm working with the Clojure 1.8 jar.
>>>>
>>>> I must say, Clojure is a good language, but the tooling is awful, not
>>>> userfriendly, not beginers friendly. Maven is a beast, is the only
>>>> thing had keped me away of Java for years, and now I must live with
>>>> it, Voluntarily (I'm learning Clojure not because the work, but
>>>> because I like it too much).
>>>>
>>>> Probably I should try Clojurescript instead.
>>>>
>>>> Thank you.
>>>>
>>>> [1]
>>>> Could not transfer artifact
>>>> clojure-complete:clojure-complete:jar:0.2.4 from/to central
>>>> (https://repo1.maven.org/maven2/): java.lang.RuntimeException:
>>>> Unexpected error: java.security.InvalidAlgorithmParameterEx
>>>> ception: the trustAnchors parameter must be non-empty
>>>> .
>>>> .
>>>> .
>>>>
>>>>
>>>> 2018-05-21 14:40 GMT-02:30 Alex Miller :
>>>> > As of Clojure 1.9, the Clojure jar depends on two additional libraries
>>>> > (spec.alpha and core.specs.alpha). Using only the clojure jar is thus
>>>> not
>>>> > sufficient.
>>>> >
>>>> > There are several ways to handle this, as described on the
>>>> > https://clojure.org/guides/getting_started page.
>>>> >
>>>> > 1. Use the new command line clj tools (linux install instructions on
>>>> that
>>>> > page) - this will fetch the deps for you.
>>>> > 2. Do a local build into a single standalone jar (note this is a
>>>> custom jar
>>>> > containing deps and is different than just the artifact you
>>>> downloaded).
>>>> > 3. Use a build tool like leiningen or boot that will fetch the deps
>>>> for you.
>>>> > 4. Download clojure and its deps manually and build your own custom
>>>> > classpath. (not recommended)
>>>> >
>>>> >
>>>> > On Monday, May 21, 2018 at 11:17:37 AM UTC-5, Jesús Gómez wrote:
>>>> >>
>>>> >> Simply: 1.7 works but 1.9 not.
>>>> >>
>>>> >> Test:
>>>> >>
>>>> >> $ # Download Clojure 1.7, 1.8 and 1.9 jars
>>>> >> $ seq 7 9 | xargs -L1 -I% wget
>>>> >>
>>>> http://repo1.maven.org/maven2/org/clojure/clojure/1.%.0/clojure-

Re: Plain clojure 1.9 fails with Could not locate ... clojure/spec/alpha.clj on classpath. in Kubuntu 18.04

2018-05-21 Thread Andy Fingerhut
Thanks, Justin.

I tried the commands you suggested on an Ubuntu 18.04 LTS system, and 'lein
repl' still fails the same way afterwards when using Ubuntu's OpenJDK
installation (and still succeeds when using Oracle's JDK installation).

Andy

On Mon, May 21, 2018 at 1:04 PM, Justin Smith  wrote:

> I should have been more specific. Just uninstalling leaves old configs
> around, and fixing this requires a full purge of the package.
>
> these are my steps on a debian system:
>
> $ sudo dpkg --purge --force-depends ca-certificates-java
> $ sudo apt-get install ca-certificates-java
>
>
> sourced from this stackoverflow answer
> https://stackoverflow.com/a/33440168
>
> On Mon, May 21, 2018 at 12:28 PM Andy Fingerhut 
> wrote:
>
>>
>> Jesús:
>>
>> Agreed that this issue is frustrating.  It doesn't necessarily help you
>> here, but realize that this issue appears like it might be unique to Ubuntu
>> 18.04's OpenJDK installations.
>>
>> This issue did not occur with earlier versions of Ubuntu that I am aware
>> of.
>>
>> Andy
>>
>> On Mon, May 21, 2018 at 10:29 AM, Jesús Gómez  wrote:
>>
>>> I followed the Getting Started guide and nothing worked well, except
>>> for the boot with nix installation.
>>>
>>> The clj tools Linux instructions failed the same way the lein one
>>> failed: Error with some certs [1]
>>> I've been told that this problem could be solved if I install Oracle
>>> Java instead of using OpenJDK. I don't want to do that.
>>>
>>> I avoided the local build instructions because it was going to require
>>> maven. I don't want to use it for now.
>>>
>>> So, for now I'm working with the Clojure 1.8 jar.
>>>
>>> I must say, Clojure is a good language, but the tooling is awful, not
>>> userfriendly, not beginers friendly. Maven is a beast, is the only
>>> thing had keped me away of Java for years, and now I must live with
>>> it, Voluntarily (I'm learning Clojure not because the work, but
>>> because I like it too much).
>>>
>>> Probably I should try Clojurescript instead.
>>>
>>> Thank you.
>>>
>>> [1]
>>> Could not transfer artifact
>>> clojure-complete:clojure-complete:jar:0.2.4 from/to central
>>> (https://repo1.maven.org/maven2/): java.lang.RuntimeException:
>>> Unexpected error: java.security.InvalidAlgorithmParameterEx
>>> ception: the trustAnchors parameter must be non-empty
>>> .
>>> .
>>> .
>>>
>>>
>>> 2018-05-21 14:40 GMT-02:30 Alex Miller :
>>> > As of Clojure 1.9, the Clojure jar depends on two additional libraries
>>> > (spec.alpha and core.specs.alpha). Using only the clojure jar is thus
>>> not
>>> > sufficient.
>>> >
>>> > There are several ways to handle this, as described on the
>>> > https://clojure.org/guides/getting_started page.
>>> >
>>> > 1. Use the new command line clj tools (linux install instructions on
>>> that
>>> > page) - this will fetch the deps for you.
>>> > 2. Do a local build into a single standalone jar (note this is a
>>> custom jar
>>> > containing deps and is different than just the artifact you
>>> downloaded).
>>> > 3. Use a build tool like leiningen or boot that will fetch the deps
>>> for you.
>>> > 4. Download clojure and its deps manually and build your own custom
>>> > classpath. (not recommended)
>>> >
>>> >
>>> > On Monday, May 21, 2018 at 11:17:37 AM UTC-5, Jesús Gómez wrote:
>>> >>
>>> >> Simply: 1.7 works but 1.9 not.
>>> >>
>>> >> Test:
>>> >>
>>> >> $ # Download Clojure 1.7, 1.8 and 1.9 jars
>>> >> $ seq 7 9 | xargs -L1 -I% wget
>>> >> http://repo1.maven.org/maven2/org/clojure/clojure/1.%.0/
>>> clojure-1.%.0.jar
>>> >> $ seq 7 9 | xargs -L1 -I% java -jar clojure-1.%.0.jar -e '"1.%.0 is
>>> >> Working"'
>>> >> "1.7.0 is Working"
>>> >> "1.8.0 is Working"
>>> >> Exception in thread "main" java.lang.ExceptionInInitializerError
>>> >> ...
>>> >> Caused by: java.io.FileNotFoundException: Could not locate
>>> >> clojure/spec/alpha__init.class or clojure/spec/alpha.clj on classpath.
>>> >> ...
>>> >&g

Re: Plain clojure 1.9 fails with Could not locate ... clojure/spec/alpha.clj on classpath. in Kubuntu 18.04

2018-05-21 Thread Peter Hull
On Monday, 21 May 2018 20:22:21 UTC+1, Andy Fingerhut wrote:
>
> Is there some other command you would recommend to force reinstall of 
> ca-certs that might work?
>
> Specifically on the ca-certs thing, there is a bug filed with Ubuntu, and 
it looks like it should be fixed fairly soon;
https://bugs.launchpad.net/ubuntu/+source/ca-certificates-java/+bug/1739631
(apologies if you already knew this)
Peter

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Plain clojure 1.9 fails with Could not locate ... clojure/spec/alpha.clj on classpath. in Kubuntu 18.04

2018-05-21 Thread Justin Smith
I should have been more specific. Just uninstalling leaves old configs
around, and fixing this requires a full purge of the package.

these are my steps on a debian system:

$ sudo dpkg --purge --force-depends ca-certificates-java
$ sudo apt-get install ca-certificates-java


sourced from this stackoverflow answer
https://stackoverflow.com/a/33440168

On Mon, May 21, 2018 at 12:28 PM Andy Fingerhut 
wrote:

>
> Jesús:
>
> Agreed that this issue is frustrating.  It doesn't necessarily help you
> here, but realize that this issue appears like it might be unique to Ubuntu
> 18.04's OpenJDK installations.
>
> This issue did not occur with earlier versions of Ubuntu that I am aware
> of.
>
> Andy
>
> On Mon, May 21, 2018 at 10:29 AM, Jesús Gómez  wrote:
>
>> I followed the Getting Started guide and nothing worked well, except
>> for the boot with nix installation.
>>
>> The clj tools Linux instructions failed the same way the lein one
>> failed: Error with some certs [1]
>> I've been told that this problem could be solved if I install Oracle
>> Java instead of using OpenJDK. I don't want to do that.
>>
>> I avoided the local build instructions because it was going to require
>> maven. I don't want to use it for now.
>>
>> So, for now I'm working with the Clojure 1.8 jar.
>>
>> I must say, Clojure is a good language, but the tooling is awful, not
>> userfriendly, not beginers friendly. Maven is a beast, is the only
>> thing had keped me away of Java for years, and now I must live with
>> it, Voluntarily (I'm learning Clojure not because the work, but
>> because I like it too much).
>>
>> Probably I should try Clojurescript instead.
>>
>> Thank you.
>>
>> [1]
>> Could not transfer artifact
>> clojure-complete:clojure-complete:jar:0.2.4 from/to central
>> (https://repo1.maven.org/maven2/): java.lang.RuntimeException:
>> Unexpected error: java.security.InvalidAlgorithmParameterEx
>> ception: the trustAnchors parameter must be non-empty
>> .
>> .
>> .
>>
>>
>> 2018-05-21 14:40 GMT-02:30 Alex Miller :
>> > As of Clojure 1.9, the Clojure jar depends on two additional libraries
>> > (spec.alpha and core.specs.alpha). Using only the clojure jar is thus
>> not
>> > sufficient.
>> >
>> > There are several ways to handle this, as described on the
>> > https://clojure.org/guides/getting_started page.
>> >
>> > 1. Use the new command line clj tools (linux install instructions on
>> that
>> > page) - this will fetch the deps for you.
>> > 2. Do a local build into a single standalone jar (note this is a custom
>> jar
>> > containing deps and is different than just the artifact you downloaded).
>> > 3. Use a build tool like leiningen or boot that will fetch the deps for
>> you.
>> > 4. Download clojure and its deps manually and build your own custom
>> > classpath. (not recommended)
>> >
>> >
>> > On Monday, May 21, 2018 at 11:17:37 AM UTC-5, Jesús Gómez wrote:
>> >>
>> >> Simply: 1.7 works but 1.9 not.
>> >>
>> >> Test:
>> >>
>> >> $ # Download Clojure 1.7, 1.8 and 1.9 jars
>> >> $ seq 7 9 | xargs -L1 -I% wget
>> >>
>> http://repo1.maven.org/maven2/org/clojure/clojure/1.%.0/clojure-1.%.0.jar
>> >> $ seq 7 9 | xargs -L1 -I% java -jar clojure-1.%.0.jar -e '"1.%.0 is
>> >> Working"'
>> >> "1.7.0 is Working"
>> >> "1.8.0 is Working"
>> >> Exception in thread "main" java.lang.ExceptionInInitializerError
>> >> ...
>> >> Caused by: java.io.FileNotFoundException: Could not locate
>> >> clojure/spec/alpha__init.class or clojure/spec/alpha.clj on classpath.
>> >> ...
>> >>
>> >> I've been trying to learn Clojure, so I've installed it in many ways:
>> >>
>> >>  * Lein - Not working due some SSL credential
>> >>  * boot vian nix - Working but ... I don't remember the why already...
>> >> something related with CIDR?... not important for this post anyways
>> >>  * via apt - Working but I can't make a simple clojure -m hello to work
>> >>
>> >> So I tried to understand the basics (No maven, no 3rd parties, etc.)
>> and
>> >> found the mentioned problem.
>> >>
>> >> I was expecting it to work flawless and to not be affected on what I
>> got
>> >&

Re: Plain clojure 1.9 fails with Could not locate ... clojure/spec/alpha.clj on classpath. in Kubuntu 18.04

2018-05-21 Thread Andy Fingerhut
Jesús:

Agreed that this issue is frustrating.  It doesn't necessarily help you
here, but realize that this issue appears like it might be unique to Ubuntu
18.04's OpenJDK installations.

This issue did not occur with earlier versions of Ubuntu that I am aware of.
Andy

On Mon, May 21, 2018 at 10:29 AM, Jesús Gómez  wrote:

> I followed the Getting Started guide and nothing worked well, except
> for the boot with nix installation.
>
> The clj tools Linux instructions failed the same way the lein one
> failed: Error with some certs [1]
> I've been told that this problem could be solved if I install Oracle
> Java instead of using OpenJDK. I don't want to do that.
>
> I avoided the local build instructions because it was going to require
> maven. I don't want to use it for now.
>
> So, for now I'm working with the Clojure 1.8 jar.
>
> I must say, Clojure is a good language, but the tooling is awful, not
> userfriendly, not beginers friendly. Maven is a beast, is the only
> thing had keped me away of Java for years, and now I must live with
> it, Voluntarily (I'm learning Clojure not because the work, but
> because I like it too much).
>
> Probably I should try Clojurescript instead.
>
> Thank you.
>
> [1]
> Could not transfer artifact
> clojure-complete:clojure-complete:jar:0.2.4 from/to central
> (https://repo1.maven.org/maven2/): java.lang.RuntimeException:
> Unexpected error: java.security.InvalidAlgorithmParameterEx
> ception: the trustAnchors parameter must be non-empty
> .
> .
> .
>
>
> 2018-05-21 14:40 GMT-02:30 Alex Miller :
> > As of Clojure 1.9, the Clojure jar depends on two additional libraries
> > (spec.alpha and core.specs.alpha). Using only the clojure jar is thus not
> > sufficient.
> >
> > There are several ways to handle this, as described on the
> > https://clojure.org/guides/getting_started page.
> >
> > 1. Use the new command line clj tools (linux install instructions on that
> > page) - this will fetch the deps for you.
> > 2. Do a local build into a single standalone jar (note this is a custom
> jar
> > containing deps and is different than just the artifact you downloaded).
> > 3. Use a build tool like leiningen or boot that will fetch the deps for
> you.
> > 4. Download clojure and its deps manually and build your own custom
> > classpath. (not recommended)
> >
> >
> > On Monday, May 21, 2018 at 11:17:37 AM UTC-5, Jesús Gómez wrote:
> >>
> >> Simply: 1.7 works but 1.9 not.
> >>
> >> Test:
> >>
> >> $ # Download Clojure 1.7, 1.8 and 1.9 jars
> >> $ seq 7 9 | xargs -L1 -I% wget
> >> http://repo1.maven.org/maven2/org/clojure/clojure/1.%.0/
> clojure-1.%.0.jar
> >> $ seq 7 9 | xargs -L1 -I% java -jar clojure-1.%.0.jar -e '"1.%.0 is
> >> Working"'
> >> "1.7.0 is Working"
> >> "1.8.0 is Working"
> >> Exception in thread "main" java.lang.ExceptionInInitializerError
> >> ...
> >> Caused by: java.io.FileNotFoundException: Could not locate
> >> clojure/spec/alpha__init.class or clojure/spec/alpha.clj on classpath.
> >> ...
> >>
> >> I've been trying to learn Clojure, so I've installed it in many ways:
> >>
> >>  * Lein - Not working due some SSL credential
> >>  * boot vian nix - Working but ... I don't remember the why already...
> >> something related with CIDR?... not important for this post anyways
> >>  * via apt - Working but I can't make a simple clojure -m hello to work
> >>
> >> So I tried to understand the basics (No maven, no 3rd parties, etc.) and
> >> found the mentioned problem.
> >>
> >> I was expecting it to work flawless and to not be affected on what I got
> >> already installed in my system, but probably is the fact I installed
> clojure
> >> via APT, which installed 1.9.0, that is causing the jar for 1.9.0 to
> fail
> >> and not the others.
> >>
> >> In any case... 1.9.0 jar is not working for me.
> >>
> >> Thank you.
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Clojure" group.
> > To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/cl

Re: Plain clojure 1.9 fails with Could not locate ... clojure/spec/alpha.clj on classpath. in Kubuntu 18.04

2018-05-21 Thread Andy Fingerhut
Justin, I have tried doing these commands on an Ubuntu 18.04 LTS system
(which I believe is Debian based):

% sudo apt-get --reinstall install ca-certificates
% sudo apt-get --reinstall install ca-certificates-java

Afterwards, the command "lein repl" still fails when using Ubuntu's
OpenJDK8 or OpenJDK10 installations, and succeeds before and after with
Oracle's JDK installations.

Is there some other command you would recommend to force reinstall of
ca-certs that might work?

Andy


On Mon, May 21, 2018 at 10:38 AM, Justin Smith  wrote:

> this is a problem with your distribution's config for installing the vm,
> on debian based systems it can be fixed by forcing reinstall of ca-certs,
> it does not require an oracle vm
>
> On Mon, May 21, 2018 at 10:30 AM Jesús Gómez  wrote:
>
>> I followed the Getting Started guide and nothing worked well, except
>> for the boot with nix installation.
>>
>> The clj tools Linux instructions failed the same way the lein one
>> failed: Error with some certs [1]
>> I've been told that this problem could be solved if I install Oracle
>> Java instead of using OpenJDK. I don't want to do that.
>>
>> I avoided the local build instructions because it was going to require
>> maven. I don't want to use it for now.
>>
>> So, for now I'm working with the Clojure 1.8 jar.
>>
>> I must say, Clojure is a good language, but the tooling is awful, not
>> userfriendly, not beginers friendly. Maven is a beast, is the only
>> thing had keped me away of Java for years, and now I must live with
>> it, Voluntarily (I'm learning Clojure not because the work, but
>> because I like it too much).
>>
>> Probably I should try Clojurescript instead.
>>
>> Thank you.
>>
>> [1]
>> Could not transfer artifact
>> clojure-complete:clojure-complete:jar:0.2.4 from/to central
>> (https://repo1.maven.org/maven2/): java.lang.RuntimeException:
>> Unexpected error: java.security.InvalidAlgorithmParameterEx
>> ception: the trustAnchors parameter must be non-empty
>> .
>> .
>> .
>>
>>
>> 2018-05-21 14:40 GMT-02:30 Alex Miller :
>> > As of Clojure 1.9, the Clojure jar depends on two additional libraries
>> > (spec.alpha and core.specs.alpha). Using only the clojure jar is thus
>> not
>> > sufficient.
>> >
>> > There are several ways to handle this, as described on the
>> > https://clojure.org/guides/getting_started page.
>> >
>> > 1. Use the new command line clj tools (linux install instructions on
>> that
>> > page) - this will fetch the deps for you.
>> > 2. Do a local build into a single standalone jar (note this is a custom
>> jar
>> > containing deps and is different than just the artifact you downloaded).
>> > 3. Use a build tool like leiningen or boot that will fetch the deps for
>> you.
>> > 4. Download clojure and its deps manually and build your own custom
>> > classpath. (not recommended)
>> >
>> >
>> > On Monday, May 21, 2018 at 11:17:37 AM UTC-5, Jesús Gómez wrote:
>> >>
>> >> Simply: 1.7 works but 1.9 not.
>> >>
>> >> Test:
>> >>
>> >> $ # Download Clojure 1.7, 1.8 and 1.9 jars
>> >> $ seq 7 9 | xargs -L1 -I% wget
>> >> http://repo1.maven.org/maven2/org/clojure/clojure/1.%.0/
>> clojure-1.%.0.jar
>> >> $ seq 7 9 | xargs -L1 -I% java -jar clojure-1.%.0.jar -e '"1.%.0 is
>> >> Working"'
>> >> "1.7.0 is Working"
>> >> "1.8.0 is Working"
>> >> Exception in thread "main" java.lang.ExceptionInInitializerError
>> >> ...
>> >> Caused by: java.io.FileNotFoundException: Could not locate
>> >> clojure/spec/alpha__init.class or clojure/spec/alpha.clj on classpath.
>> >> ...
>> >>
>> >> I've been trying to learn Clojure, so I've installed it in many ways:
>> >>
>> >>  * Lein - Not working due some SSL credential
>> >>  * boot vian nix - Working but ... I don't remember the why already...
>> >> something related with CIDR?... not important for this post anyways
>> >>  * via apt - Working but I can't make a simple clojure -m hello to work
>> >>
>> >> So I tried to understand the basics (No maven, no 3rd parties, etc.)
>> and
>> >> found the mentioned problem.
>> >>
>> >> I was expecting it to work flawless and to not be affected on what I
>&g

Re: Plain clojure 1.9 fails with Could not locate ... clojure/spec/alpha.clj on classpath. in Kubuntu 18.04

2018-05-21 Thread Justin Smith
this is a problem with your distribution's config for installing the vm, on
debian based systems it can be fixed by forcing reinstall of ca-certs, it
does not require an oracle vm

On Mon, May 21, 2018 at 10:30 AM Jesús Gómez  wrote:

> I followed the Getting Started guide and nothing worked well, except
> for the boot with nix installation.
>
> The clj tools Linux instructions failed the same way the lein one
> failed: Error with some certs [1]
> I've been told that this problem could be solved if I install Oracle
> Java instead of using OpenJDK. I don't want to do that.
>
> I avoided the local build instructions because it was going to require
> maven. I don't want to use it for now.
>
> So, for now I'm working with the Clojure 1.8 jar.
>
> I must say, Clojure is a good language, but the tooling is awful, not
> userfriendly, not beginers friendly. Maven is a beast, is the only
> thing had keped me away of Java for years, and now I must live with
> it, Voluntarily (I'm learning Clojure not because the work, but
> because I like it too much).
>
> Probably I should try Clojurescript instead.
>
> Thank you.
>
> [1]
> Could not transfer artifact
> clojure-complete:clojure-complete:jar:0.2.4 from/to central
> (https://repo1.maven.org/maven2/): java.lang.RuntimeException:
> Unexpected error: java.security.InvalidAlgorithmParameterEx
> ception: the trustAnchors parameter must be non-empty
> .
> .
> .
>
>
> 2018-05-21 14:40 GMT-02:30 Alex Miller :
> > As of Clojure 1.9, the Clojure jar depends on two additional libraries
> > (spec.alpha and core.specs.alpha). Using only the clojure jar is thus not
> > sufficient.
> >
> > There are several ways to handle this, as described on the
> > https://clojure.org/guides/getting_started page.
> >
> > 1. Use the new command line clj tools (linux install instructions on that
> > page) - this will fetch the deps for you.
> > 2. Do a local build into a single standalone jar (note this is a custom
> jar
> > containing deps and is different than just the artifact you downloaded).
> > 3. Use a build tool like leiningen or boot that will fetch the deps for
> you.
> > 4. Download clojure and its deps manually and build your own custom
> > classpath. (not recommended)
> >
> >
> > On Monday, May 21, 2018 at 11:17:37 AM UTC-5, Jesús Gómez wrote:
> >>
> >> Simply: 1.7 works but 1.9 not.
> >>
> >> Test:
> >>
> >> $ # Download Clojure 1.7, 1.8 and 1.9 jars
> >> $ seq 7 9 | xargs -L1 -I% wget
> >>
> http://repo1.maven.org/maven2/org/clojure/clojure/1.%.0/clojure-1.%.0.jar
> >> $ seq 7 9 | xargs -L1 -I% java -jar clojure-1.%.0.jar -e '"1.%.0 is
> >> Working"'
> >> "1.7.0 is Working"
> >> "1.8.0 is Working"
> >> Exception in thread "main" java.lang.ExceptionInInitializerError
> >> ...
> >> Caused by: java.io.FileNotFoundException: Could not locate
> >> clojure/spec/alpha__init.class or clojure/spec/alpha.clj on classpath.
> >> ...
> >>
> >> I've been trying to learn Clojure, so I've installed it in many ways:
> >>
> >>  * Lein - Not working due some SSL credential
> >>  * boot vian nix - Working but ... I don't remember the why already...
> >> something related with CIDR?... not important for this post anyways
> >>  * via apt - Working but I can't make a simple clojure -m hello to work
> >>
> >> So I tried to understand the basics (No maven, no 3rd parties, etc.) and
> >> found the mentioned problem.
> >>
> >> I was expecting it to work flawless and to not be affected on what I got
> >> already installed in my system, but probably is the fact I installed
> clojure
> >> via APT, which installed 1.9.0, that is causing the jar for 1.9.0 to
> fail
> >> and not the others.
> >>
> >> In any case... 1.9.0 jar is not working for me.
> >>
> >> Thank you.
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Clojure" group.
> > To post to this group, send email to clojure@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+unsubscr...@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 th

Re: Plain clojure 1.9 fails with Could not locate ... clojure/spec/alpha.clj on classpath. in Kubuntu 18.04

2018-05-21 Thread Jesús Gómez
I followed the Getting Started guide and nothing worked well, except
for the boot with nix installation.

The clj tools Linux instructions failed the same way the lein one
failed: Error with some certs [1]
I've been told that this problem could be solved if I install Oracle
Java instead of using OpenJDK. I don't want to do that.

I avoided the local build instructions because it was going to require
maven. I don't want to use it for now.

So, for now I'm working with the Clojure 1.8 jar.

I must say, Clojure is a good language, but the tooling is awful, not
userfriendly, not beginers friendly. Maven is a beast, is the only
thing had keped me away of Java for years, and now I must live with
it, Voluntarily (I'm learning Clojure not because the work, but
because I like it too much).

Probably I should try Clojurescript instead.

Thank you.

[1]
Could not transfer artifact
clojure-complete:clojure-complete:jar:0.2.4 from/to central
(https://repo1.maven.org/maven2/): java.lang.RuntimeException:
Unexpected error: java.security.InvalidAlgorithmParameterEx
ception: the trustAnchors parameter must be non-empty
.
.
.


2018-05-21 14:40 GMT-02:30 Alex Miller :
> As of Clojure 1.9, the Clojure jar depends on two additional libraries
> (spec.alpha and core.specs.alpha). Using only the clojure jar is thus not
> sufficient.
>
> There are several ways to handle this, as described on the
> https://clojure.org/guides/getting_started page.
>
> 1. Use the new command line clj tools (linux install instructions on that
> page) - this will fetch the deps for you.
> 2. Do a local build into a single standalone jar (note this is a custom jar
> containing deps and is different than just the artifact you downloaded).
> 3. Use a build tool like leiningen or boot that will fetch the deps for you.
> 4. Download clojure and its deps manually and build your own custom
> classpath. (not recommended)
>
>
> On Monday, May 21, 2018 at 11:17:37 AM UTC-5, Jesús Gómez wrote:
>>
>> Simply: 1.7 works but 1.9 not.
>>
>> Test:
>>
>> $ # Download Clojure 1.7, 1.8 and 1.9 jars
>> $ seq 7 9 | xargs -L1 -I% wget
>> http://repo1.maven.org/maven2/org/clojure/clojure/1.%.0/clojure-1.%.0.jar
>> $ seq 7 9 | xargs -L1 -I% java -jar clojure-1.%.0.jar -e '"1.%.0 is
>> Working"'
>> "1.7.0 is Working"
>> "1.8.0 is Working"
>> Exception in thread "main" java.lang.ExceptionInInitializerError
>> ...
>> Caused by: java.io.FileNotFoundException: Could not locate
>> clojure/spec/alpha__init.class or clojure/spec/alpha.clj on classpath.
>> ...
>>
>> I've been trying to learn Clojure, so I've installed it in many ways:
>>
>>  * Lein - Not working due some SSL credential
>>  * boot vian nix - Working but ... I don't remember the why already...
>> something related with CIDR?... not important for this post anyways
>>  * via apt - Working but I can't make a simple clojure -m hello to work
>>
>> So I tried to understand the basics (No maven, no 3rd parties, etc.) and
>> found the mentioned problem.
>>
>> I was expecting it to work flawless and to not be affected on what I got
>> already installed in my system, but probably is the fact I installed clojure
>> via APT, which installed 1.9.0, that is causing the jar for 1.9.0 to fail
>> and not the others.
>>
>> In any case... 1.9.0 jar is not working for me.
>>
>> Thank you.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Plain clojure 1.9 fails with Could not locate ... clojure/spec/alpha.clj on classpath. in Kubuntu 18.04

2018-05-21 Thread Alex Miller
As of Clojure 1.9, the Clojure jar depends on two additional libraries 
(spec.alpha and core.specs.alpha). Using only the clojure jar is thus not 
sufficient. 

There are several ways to handle this, as described on the 
https://clojure.org/guides/getting_started page.

1. Use the new command line clj tools (linux install instructions on that 
page) - this will fetch the deps for you.
2. Do a local build into a single standalone jar (note this is a custom jar 
containing deps and is different than just the artifact you downloaded).
3. Use a build tool like leiningen or boot that will fetch the deps for you.
4. Download clojure and its deps manually and build your own custom 
classpath. (not recommended)

On Monday, May 21, 2018 at 11:17:37 AM UTC-5, Jesús Gómez wrote:
>
> Simply: 1.7 works but 1.9 not.
>
> Test:
>
> $ # Download Clojure 1.7, 1.8 and 1.9 jars
> $ seq 7 9 | xargs -L1 -I% wget 
> http://repo1.maven.org/maven2/org/clojure/clojure/1.%.0/clojure-1.%.0.jar
> $ seq 7 9 | xargs -L1 -I% java -jar clojure-1.%.0.jar -e '"1.%.0 is 
> Working"'
> "1.7.0 is Working"
> "1.8.0 is Working"
> Exception in thread "main" java.lang.ExceptionInInitializerError
> ...
> Caused by: java.io.FileNotFoundException: Could not locate 
> clojure/spec/alpha__init.class or clojure/spec/alpha.clj on classpath.
> ...
>
> I've been trying to learn Clojure, so I've installed it in many ways:
>
>  * Lein - Not working due some SSL credential
>  * boot vian nix - Working but ... I don't remember the why already... 
> something related with CIDR?... not important for this post anyways
>  * via apt - Working but I can't make a simple clojure -m hello to work
>
> So I tried to understand the basics (No maven, no 3rd parties, etc.) and 
> found the mentioned problem.
>
> I was expecting it to work flawless and to not be affected on what I got 
> already installed in my system, but probably is the fact I installed 
> clojure via APT, which installed 1.9.0, that is causing the jar for 1.9.0 
> to fail and not the others.
>
> In any case... 1.9.0 jar is not working for me.
>
> Thank you.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Plain clojure 1.9 fails with Could not locate ... clojure/spec/alpha.clj on classpath. in Kubuntu 18.04

2018-05-21 Thread John Mastro
Jesús Gómez  wrote:
> Simply: 1.7 works but 1.9 not.

> Test:

> $ # Download Clojure 1.7, 1.8 and 1.9 jars
> $ seq 7 9 | xargs -L1 -I% wget
http://repo1.maven.org/maven2/org/clojure/clojure/1.%.0/clojure-1.%.0.jar
> $ seq 7 9 | xargs -L1 -I% java -jar clojure-1.%.0.jar -e '"1.%.0 is
Working"'
> "1.7.0 is Working"
> "1.8.0 is Working"
> Exception in thread "main" java.lang.ExceptionInInitializerError
> ...
> Caused by: java.io.FileNotFoundException: Could not locate
clojure/spec/alpha__init.class or clojure/spec/alpha.clj on classpath.

Use the Linux installation script as described on the "geting started"
page[1]. This will also install Clojure's dependencies for you. The
installation script accepts a `--prefix` argument if you don't want to
install it globally.

[1]: https://clojure.org/guides/getting_started

Hope that helps

 John

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Plain clojure 1.9 fails with Could not locate ... clojure/spec/alpha.clj on classpath. in Kubuntu 18.04

2018-05-21 Thread Jesús Gómez
Simply: 1.7 works but 1.9 not.

Test:

$ # Download Clojure 1.7, 1.8 and 1.9 jars
$ seq 7 9 | xargs -L1 -I% wget 
http://repo1.maven.org/maven2/org/clojure/clojure/1.%.0/clojure-1.%.0.jar
$ seq 7 9 | xargs -L1 -I% java -jar clojure-1.%.0.jar -e '"1.%.0 is 
Working"'
"1.7.0 is Working"
"1.8.0 is Working"
Exception in thread "main" java.lang.ExceptionInInitializerError
...
Caused by: java.io.FileNotFoundException: Could not locate 
clojure/spec/alpha__init.class or clojure/spec/alpha.clj on classpath.
...

I've been trying to learn Clojure, so I've installed it in many ways:

 * Lein - Not working due some SSL credential
 * boot vian nix - Working but ... I don't remember the why already... 
something related with CIDR?... not important for this post anyways
 * via apt - Working but I can't make a simple clojure -m hello to work

So I tried to understand the basics (No maven, no 3rd parties, etc.) and 
found the mentioned problem.

I was expecting it to work flawless and to not be affected on what I got 
already installed in my system, but probably is the fact I installed 
clojure via APT, which installed 1.9.0, that is causing the jar for 1.9.0 
to fail and not the others.

In any case... 1.9.0 jar is not working for me.

Thank you.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Could not locate clojure/tools/namespace/find__init.class or clojure/tools/namespace/find.clj on classpath.

2017-03-04 Thread Gregg Reynolds
On Mar 4, 2017 4:34 PM, "Alex Miller"  wrote:


> Welcome to Clojure. If you want to play with the language, building it is
> about the last thing you want to do.
>

Actually, it's quite fun to add debugging to parts of Clojure and use that
modified version and I think it's nice that it is so easy to hack on if you
like.


sure, but you are Alex Miller! ;)


-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Could not locate clojure/tools/namespace/find__init.class or clojure/tools/namespace/find.clj on classpath.

2017-03-04 Thread Alex Miller

>
>
> Welcome to Clojure. If you want to play with the language, building it is 
> about the last thing you want to do.  
>

Actually, it's quite fun to add debugging to parts of Clojure and use that 
modified version and I think it's nice that it is so easy to hack on if you 
like.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Could not locate clojure/tools/namespace/find__init.class or clojure/tools/namespace/find.clj on classpath.

2017-03-04 Thread Alex Miller
t;> /home/murf/Downloads/clojure-1.8.0/target/classes
>>  [java] Compiling clojure.java.javadoc to 
>> /home/murf/Downloads/clojure-1.8.0/target/classes
>>  [java] Compiling clojure.java.shell to 
>> /home/murf/Downloads/clojure-1.8.0/target/classes
>>  [java] Compiling clojure.java.browse-ui to 
>> /home/murf/Downloads/clojure-1.8.0/target/classes
>>  [java] Compiling clojure.string to 
>> /home/murf/Downloads/clojure-1.8.0/target/classes
>>  [java] Compiling clojure.data to 
>> /home/murf/Downloads/clojure-1.8.0/target/classes
>>  [java] Compiling clojure.reflect to 
>> /home/murf/Downloads/clojure-1.8.0/target/classes
>>
>> build:
>>
>> compile-tests:
>> [mkdir] Created dir: 
>> /home/murf/Downloads/clojure-1.8.0/target/test-classes
>> [javac] Compiling 3 source files to 
>> /home/murf/Downloads/clojure-1.8.0/target/test-classes
>> [javac] warning: [options] bootstrap class path not set in 
>> conjunction with -source 1.6
>> [javac] 1 warning
>>  [echo] Direct linking = true
>>  [java] Compiling clojure.test-clojure.protocols.examples to 
>> /home/murf/Downloads/clojure-1.8.0/target/test-classes
>>  [java] Compiling clojure.test-clojure.genclass.examples to 
>> /home/murf/Downloads/clojure-1.8.0/target/test-classes
>>  [java] Compiling clojure.test-clojure.compilation.load-ns to 
>> /home/murf/Downloads/clojure-1.8.0/target/test-classes
>>  [java] Compiling clojure.test-clojure.annotations to 
>> /home/murf/Downloads/clojure-1.8.0/target/test-classes
>>
>> test-example:
>>  [java] Exception in thread "main" java.io.FileNotFoundException: 
>> Could not locate clojure/tools/namespace/find__init.class or 
>> clojure/tools/namespace/find.clj on classpath., 
>> compiling:(/home/murf/Downloads/clojure-1.8.0/src/script/run_test.clj:2:1)
>>  [java] at clojure.lang.Compiler.load(Compiler.java:7391)
>>  [java] at clojure.lang.Compiler.loadFile(Compiler.java:7317)
>>  [java] at clojure.main$load_script.invokeStatic(main.clj:275)
>>  [java] at clojure.main$script_opt.invokeStatic(main.clj:335)
>>  [java] at clojure.main$script_opt.invoke(main.clj:330)
>>  [java] at clojure.main$main.invokeStatic(main.clj:421)
>>  [java] at clojure.main$main.doInvoke(main.clj:384)
>>  [java] at clojure.lang.RestFn.invoke(RestFn.java:408)
>>  [java] at clojure.lang.Var.invoke(Var.java:379)
>>  [java] at clojure.lang.AFn.applyToHelper(AFn.java:154)
>>  [java] at clojure.lang.Var.applyTo(Var.java:700)
>>  [java] at clojure.main.main(main.java:37)
>>  [java] Caused by: java.io.FileNotFoundException: Could not locate 
>> clojure/tools/namespace/find__init.class or 
>> clojure/tools/namespace/find.clj on classpath.
>>  [java] at clojure.lang.RT.load(RT.java:456)
>>  [java] at clojure.lang.RT.load(RT.java:419)
>>  [java] at clojure.core$load$fn__5677.invoke(core.clj:5893)
>>  [java] at clojure.core$load.invokeStatic(core.clj:5892)
>>  [java] at clojure.core$load.doInvoke(core.clj:5876)
>>  [java] at clojure.lang.RestFn.invoke(RestFn.java:408)
>>  [java] at clojure.core$load_one.invokeStatic(core.clj:5697)
>>  [java] at clojure.core$load_one.invoke(core.clj:5692)
>>  [java] at clojure.core$load_lib$fn__5626.invoke(core.clj:5737)
>>  [java] at clojure.core$load_lib.invokeStatic(core.clj:5736)
>>  [java] at clojure.core$load_lib.doInvoke(core.clj:5717)
>>  [java] at clojure.lang.RestFn.applyTo(RestFn.java:142)
>>  [java] at clojure.core$apply.invokeStatic(core.clj:648)
>>  [java] at clojure.core$load_libs.invokeStatic(core.clj:5774)
>>  [java] at clojure.core$load_libs.doInvoke(core.clj:5758)
>>  [java] at clojure.lang.RestFn.applyTo(RestFn.java:137)
>>  [java] at clojure.core$apply.invokeStatic(core.clj:648)
>>  [java] at clojure.core$require.invokeStatic(core.clj:5796)
>>  [java] at user$eval3.invokeStatic(run_test.clj:2)
>>  [java] at user$eval3.invoke(run_test.clj:2)
>>  [java] at clojure.lang.Compiler.eval(Compiler.java:6927)
>>  [java] at clojure.lang.Compiler.load(Compiler.java:7379)
>>  [java] ... 11 more
>>
>> BUILD FAILED
>> /home/murf/Downloads/clojure-1.8.0/build.xml:113: Java returned: 1
>>
>> Total time: 17 seconds
>>
>> What did I miss?
>>
>> OH- ONE OTHER THING:
>>

Re: Could not locate clojure/tools/namespace/find__init.class or clojure/tools/namespace/find.clj on classpath.

2017-03-04 Thread Gregg Reynolds
On Mar 4, 2017 1:43 PM, "Steve Murphy"  wrote:

Hello--

Heard interesting things about clojure, thought I'd play with it, so I
downloaded the clojure-1.8.0 zip file,
exploded it, and tried to build it with ant... all this on my ubuntu 16.04
workstation.


Welcome to Clojure. If you want to play with the language, building it is
about the last thing you want to do.  You can download the jar, but the
best way to get going is to use one of the std build systems that take care
of all the housekeeping. I've never manually downloaded Clojure, always let
the tools deal with that. The most popular by far are
https://github.com/boot-clj/boot and https://leiningen.org.  with either
you can start coding inmediately.

hth, g

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Could not locate clojure/tools/namespace/find__init.class or clojure/tools/namespace/find.clj on classpath.

2017-03-04 Thread Andy Fingerhut
lojure.test-clojure.protocols.examples to
> /home/murf/Downloads/clojure-1.8.0/target/test-classes
>  [java] Compiling clojure.test-clojure.genclass.examples to
> /home/murf/Downloads/clojure-1.8.0/target/test-classes
>  [java] Compiling clojure.test-clojure.compilation.load-ns to
> /home/murf/Downloads/clojure-1.8.0/target/test-classes
>  [java] Compiling clojure.test-clojure.annotations to
> /home/murf/Downloads/clojure-1.8.0/target/test-classes
>
> test-example:
>  [java] Exception in thread "main" java.io.FileNotFoundException:
> Could not locate clojure/tools/namespace/find__init.class or
> clojure/tools/namespace/find.clj on classpath., compiling:(/home/murf/
> Downloads/clojure-1.8.0/src/script/run_test.clj:2:1)
>  [java] at clojure.lang.Compiler.load(Compiler.java:7391)
>  [java] at clojure.lang.Compiler.loadFile(Compiler.java:7317)
>  [java] at clojure.main$load_script.invokeStatic(main.clj:275)
>  [java] at clojure.main$script_opt.invokeStatic(main.clj:335)
>  [java] at clojure.main$script_opt.invoke(main.clj:330)
>  [java] at clojure.main$main.invokeStatic(main.clj:421)
>  [java] at clojure.main$main.doInvoke(main.clj:384)
>  [java] at clojure.lang.RestFn.invoke(RestFn.java:408)
>  [java] at clojure.lang.Var.invoke(Var.java:379)
>  [java] at clojure.lang.AFn.applyToHelper(AFn.java:154)
>  [java] at clojure.lang.Var.applyTo(Var.java:700)
>  [java] at clojure.main.main(main.java:37)
>  [java] Caused by: java.io.FileNotFoundException: Could not locate
> clojure/tools/namespace/find__init.class or clojure/tools/namespace/find.clj
> on classpath.
>  [java] at clojure.lang.RT.load(RT.java:456)
>  [java] at clojure.lang.RT.load(RT.java:419)
>  [java] at clojure.core$load$fn__5677.invoke(core.clj:5893)
>  [java] at clojure.core$load.invokeStatic(core.clj:5892)
>  [java] at clojure.core$load.doInvoke(core.clj:5876)
>  [java] at clojure.lang.RestFn.invoke(RestFn.java:408)
>  [java] at clojure.core$load_one.invokeStatic(core.clj:5697)
>  [java] at clojure.core$load_one.invoke(core.clj:5692)
>  [java] at clojure.core$load_lib$fn__5626.invoke(core.clj:5737)
>  [java] at clojure.core$load_lib.invokeStatic(core.clj:5736)
>  [java] at clojure.core$load_lib.doInvoke(core.clj:5717)
>  [java] at clojure.lang.RestFn.applyTo(RestFn.java:142)
>  [java] at clojure.core$apply.invokeStatic(core.clj:648)
>  [java] at clojure.core$load_libs.invokeStatic(core.clj:5774)
>  [java] at clojure.core$load_libs.doInvoke(core.clj:5758)
>  [java] at clojure.lang.RestFn.applyTo(RestFn.java:137)
>  [java] at clojure.core$apply.invokeStatic(core.clj:648)
>  [java] at clojure.core$require.invokeStatic(core.clj:5796)
>  [java] at user$eval3.invokeStatic(run_test.clj:2)
>  [java] at user$eval3.invoke(run_test.clj:2)
>  [java] at clojure.lang.Compiler.eval(Compiler.java:6927)
>  [java] at clojure.lang.Compiler.load(Compiler.java:7379)
>  [java] ... 11 more
>
> BUILD FAILED
> /home/murf/Downloads/clojure-1.8.0/build.xml:113: Java returned: 1
>
> Total time: 17 seconds
>
> What did I miss?
>
> OH- ONE OTHER THING:
>
> the readme says:
>
> To build locally with Ant:
>
>One-time setup:./antsetup.sh
>To build:  ant
>
> I noted that the zip file doesn't seem to contain the file antsetup.sh; is
> this a bug
> in packaging the release, or in the readme?
>
> murf
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Could not locate clojure/tools/namespace/find__init.class or clojure/tools/namespace/find.clj on classpath.

2017-03-04 Thread Steve Murphy
Hello--

Heard interesting things about clojure, thought I'd play with it, so I 
downloaded the clojure-1.8.0 zip file,
exploded it, and tried to build it with ant... all this on my ubuntu 16.04 
workstation.

I discovered my java installation is a bit incomplete for this... I 
installed the openjdk-8-jdk and openjdk-8-jdk-headless and ant packages.
I had to update my JAVA_HOME :

declare -x JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

and:

murf@parse1:~/Downloads/clojure-1.8.0$ ant
Buildfile: /home/murf/Downloads/clojure-1.8.0/build.xml

clean:
   [delete] Deleting directory /home/murf/Downloads/clojure-1.8.0/target

init:
[mkdir] Created dir: /home/murf/Downloads/clojure-1.8.0/target/classes
[mkdir] Created dir: 
/home/murf/Downloads/clojure-1.8.0/target/classes/clojure

compile-java:
[javac] Compiling 167 source files to 
/home/murf/Downloads/clojure-1.8.0/target/classes
[javac] warning: [options] bootstrap class path not set in conjunction 
with -source 1.6
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 warning

compile-clojure:
 [java] Compiling clojure.core to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.core.protocols to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.core.server to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.main to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.set to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.edn to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.xml to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.zip to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.inspector to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.walk to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.stacktrace to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.template to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.test to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.test.tap to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.test.junit to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.pprint to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.java.io to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.repl to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.java.browse to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.java.javadoc to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.java.shell to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.java.browse-ui to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.string to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.data to 
/home/murf/Downloads/clojure-1.8.0/target/classes
 [java] Compiling clojure.reflect to 
/home/murf/Downloads/clojure-1.8.0/target/classes

build:

compile-tests:
[mkdir] Created dir: 
/home/murf/Downloads/clojure-1.8.0/target/test-classes
[javac] Compiling 3 source files to 
/home/murf/Downloads/clojure-1.8.0/target/test-classes
[javac] warning: [options] bootstrap class path not set in conjunction 
with -source 1.6
[javac] 1 warning
 [echo] Direct linking = true
 [java] Compiling clojure.test-clojure.protocols.examples to 
/home/murf/Downloads/clojure-1.8.0/target/test-classes
 [java] Compiling clojure.test-clojure.genclass.examples to 
/home/murf/Downloads/clojure-1.8.0/target/test-classes
 [java] Compiling clojure.test-clojure.compilation.load-ns to 
/home/murf/Downloads/clojure-1.8.0/target/test-classes
 [java] Compiling clojure.test-clojure.annotations to 
/home/murf/Downloads/clojure-1.8.0/target/test-classes

test-example:
 [java] Exception in thread "main" java.io.FileNotFoundException: Could 
not locate clojure/tools/namespace/find__init.class or 
clojure/tools/namespace/find.clj on classpath., 
compiling:(/home/murf/Downloads/clojure-1.8.0/src/script/run_test.clj:2:1)
 [java] at clojure.lang.Compiler.load(Compiler.java:7391)
 [java] at clojure.lang.Compiler.loadFile(Compiler.java:7317)
 [java] at clojure.main$load_script.invokeStatic(main.clj:275)
 [java] at clojure.main$script_opt.invokeStatic(main.clj:335)
 [java] at clojure.main$script_opt.invoke(main.clj:330)
 [java] at clojure.main$main.invokeStatic(main.clj:421)
   

Re: Why would I get this: FileNotFoundException: Could not locate raynes/fs__init.class

2016-12-13 Thread larry google groups
Thank you. That must have been a copy-and-paste error. Funny thing is that 
I looked at it a half-dozen times and asked myself if I'd copied something 
wrong. 


On Tuesday, December 13, 2016 at 12:28:16 PM UTC-5, Toby Crawley wrote:
>
> On Tue, Dec 13, 2016 at 12:20 PM, larry google groups 
> > wrote: 
> > (:require 
> >[excel-to-csv.xls :as xls] 
> >[excel-to-csv.xlsx :as xlsx] 
> >[excel-to-csv.temporal :as temporal] 
> >[taoensso.timbre :as timbre] 
> >[raynes.fs :as fs] 
>
> The ns is named `me.raynes.fs`: 
> https://github.com/Raynes/fs/blob/master/src/me/raynes/fs.clj#L1 
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Why would I get this: FileNotFoundException: Could not locate raynes/fs__init.class

2016-12-13 Thread Toby Crawley
On Tue, Dec 13, 2016 at 12:20 PM, larry google groups
 wrote:
> (:require
>[excel-to-csv.xls :as xls]
>[excel-to-csv.xlsx :as xlsx]
>[excel-to-csv.temporal :as temporal]
>[taoensso.timbre :as timbre]
>[raynes.fs :as fs]

The ns is named `me.raynes.fs`:
https://github.com/Raynes/fs/blob/master/src/me/raynes/fs.clj#L1

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Why would I get this: FileNotFoundException: Could not locate raynes/fs__init.class

2016-12-13 Thread larry google groups
What am I doing wrong here?

This is from my project file:

  :dependencies [
 [org.clojure/clojure "1.7.0"]
 [org.clojure/test.check "0.9.0"]
 [org.clojure/data.xml "0.1.0-beta1"]
 [org.clojure/data.json "0.2.6"]
 [com.taoensso/timbre "4.3.1"]
 [overtone/at-at "1.2.0"]
 [defun "0.3.0-RC1"]
 [dire "0.5.4"]
 [slingshot "0.12.2"]
 [clj-time "0.6.0"]
 [me.raynes/fs "1.4.6"]
 [clj-stacktrace "0.2.7"] 
 [sax/sax "2.0.1"]
 [xml-apis/xml-apis "2.0.2"]
 [javax.xml.stream/stax-api "1.0-2"]
 [org.apache.poi/poi "3.9"]   
 [org.apache.poi/poi-ooxml "3.9"]
 ]


And in my file_converter.clj file:

  (:require
   [excel-to-csv.xls :as xls]
   [excel-to-csv.xlsx :as xlsx]
   [excel-to-csv.temporal :as temporal]
   [taoensso.timbre :as timbre]
   [raynes.fs :as fs]
   [clojure.java.io :as io]
   [defun.core :refer [defun]]


I do "lein clean" and then "lein uberjar" and I get: 

Compiling excel-to-csv.core
java.io.FileNotFoundException: Could not locate raynes/fs__init.class or 
raynes/fs.clj on classpath., compiling:(file_converter.clj:1:1)
Exception in thread "main" java.io.FileNotFoundException: Could not locate 
raynes/fs__init.class or raynes/fs.clj on classpath., 
compiling:(file_converter.clj:1:1)


What?

I suppose I could copy-and-paste the code to my own local hard drive, but I 
would like to know why this is happening. 





-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Could not locate ring/adapter/jetty__init.class or ring/adapter/jetty.clj on classpath although it's there

2015-10-22 Thread Timur

Ok this time, it works for sure. 

The problem was because of transitivie dependencies. 

Thanks and regards,

Timur

On Thursday, October 22, 2015 at 12:17:07 PM UTC+2, Colin Yates wrote:
>
> Maybe a sample project might help?
>
> On 22 Oct 2015, at 10:49, Timur > wrote:
>
>
> Nope false positive, it did not work :(
>
> On Thursday, October 22, 2015 at 11:40:08 AM UTC+2, Timur wrote:
>>
>>
>> Okay that resolved the issue project B was providing some communication 
>> functionality and did not declare any explicit dependeny on jetty-adapter. 
>> After defining it worked. 
>>
>> Thanks for the tip!!
>>
>>
>> On Thursday, October 22, 2015 at 11:26:52 AM UTC+2, Colin Yates wrote:
>>>
>>> Not sure why that isn’t working but it is highly recommended not to 
>>> depend on transitive dependencies. If you need a lib for :compile scope 
>>> (rather than :provided) then you should (must?) declare that; projectC 
>>> should depend directly on ring-jetty-adapter in this case.
>>>
>>> On 22 Oct 2015, at 10:21, Timur  wrote:
>>>
>>> Hi all, 
>>>
>>> I have a multi-project set-up. Base project A depends on 
>>> [ring/ring-jetty-adapter "1.4.0"], a project B depends on this project A 
>>> which is included in project C. So in simple words dependency graph: 
>>>
>>> [ring/ring-jetty-adapter "1.4.0"] -> project A -> project B -> project C
>>>
>>> When I run repl in Cider for project B. It works without any problems. 
>>> However, when I run it for project C it cannot locate ring/adapter/jetty. 
>>> The dependency is not added into the list of class paths. 
>>>
>>> Any ideas how I can resolve this? 
>>>
>>> -- 
>>> 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/d/optout.
>>>
>>>
>>>
> -- 
> 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/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Could not locate ring/adapter/jetty__init.class or ring/adapter/jetty.clj on classpath although it's there

2015-10-22 Thread Colin Yates
Maybe a sample project might help?
> On 22 Oct 2015, at 10:49, Timur  wrote:
> 
> 
> Nope false positive, it did not work :(
> 
> On Thursday, October 22, 2015 at 11:40:08 AM UTC+2, Timur wrote:
> 
> Okay that resolved the issue project B was providing some communication 
> functionality and did not declare any explicit dependeny on jetty-adapter. 
> After defining it worked. 
> 
> Thanks for the tip!!
> 
> 
> On Thursday, October 22, 2015 at 11:26:52 AM UTC+2, Colin Yates wrote:
> Not sure why that isn’t working but it is highly recommended not to depend on 
> transitive dependencies. If you need a lib for :compile scope (rather than 
> :provided) then you should (must?) declare that; projectC should depend 
> directly on ring-jetty-adapter in this case.
> 
>> On 22 Oct 2015, at 10:21, Timur > wrote:
>> 
>> Hi all, 
>> 
>> I have a multi-project set-up. Base project A depends on 
>> [ring/ring-jetty-adapter "1.4.0"], a project B depends on this project A 
>> which is included in project C. So in simple words dependency graph: 
>> 
>> [ring/ring-jetty-adapter "1.4.0"] -> project A -> project B -> project C
>> 
>> When I run repl in Cider for project B. It works without any problems. 
>> However, when I run it for project C it cannot locate ring/adapter/jetty. 
>> The dependency is not added into the list of class paths. 
>> 
>> Any ideas how I can resolve this? 
>> 
>> -- 
>> 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/d/optout 
>> .
> 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com 
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Could not locate ring/adapter/jetty__init.class or ring/adapter/jetty.clj on classpath although it's there

2015-10-22 Thread Timur

Nope false positive, it did not work :(

On Thursday, October 22, 2015 at 11:40:08 AM UTC+2, Timur wrote:
>
>
> Okay that resolved the issue project B was providing some communication 
> functionality and did not declare any explicit dependeny on jetty-adapter. 
> After defining it worked. 
>
> Thanks for the tip!!
>
>
> On Thursday, October 22, 2015 at 11:26:52 AM UTC+2, Colin Yates wrote:
>>
>> Not sure why that isn’t working but it is highly recommended not to 
>> depend on transitive dependencies. If you need a lib for :compile scope 
>> (rather than :provided) then you should (must?) declare that; projectC 
>> should depend directly on ring-jetty-adapter in this case.
>>
>> On 22 Oct 2015, at 10:21, Timur  wrote:
>>
>> Hi all, 
>>
>> I have a multi-project set-up. Base project A depends on 
>> [ring/ring-jetty-adapter "1.4.0"], a project B depends on this project A 
>> which is included in project C. So in simple words dependency graph: 
>>
>> [ring/ring-jetty-adapter "1.4.0"] -> project A -> project B -> project C
>>
>> When I run repl in Cider for project B. It works without any problems. 
>> However, when I run it for project C it cannot locate ring/adapter/jetty. 
>> The dependency is not added into the list of class paths. 
>>
>> Any ideas how I can resolve this? 
>>
>> -- 
>> 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/d/optout.
>>
>>
>>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Could not locate ring/adapter/jetty__init.class or ring/adapter/jetty.clj on classpath although it's there

2015-10-22 Thread Timur

Okay that resolved the issue project B was providing some communication 
functionality and did not declare any explicit dependeny on jetty-adapter. 
After defining it worked. 

Thanks for the tip!!


On Thursday, October 22, 2015 at 11:26:52 AM UTC+2, Colin Yates wrote:
>
> Not sure why that isn’t working but it is highly recommended not to depend 
> on transitive dependencies. If you need a lib for :compile scope (rather 
> than :provided) then you should (must?) declare that; projectC should 
> depend directly on ring-jetty-adapter in this case.
>
> On 22 Oct 2015, at 10:21, Timur > wrote:
>
> Hi all, 
>
> I have a multi-project set-up. Base project A depends on 
> [ring/ring-jetty-adapter "1.4.0"], a project B depends on this project A 
> which is included in project C. So in simple words dependency graph: 
>
> [ring/ring-jetty-adapter "1.4.0"] -> project A -> project B -> project C
>
> When I run repl in Cider for project B. It works without any problems. 
> However, when I run it for project C it cannot locate ring/adapter/jetty. 
> The dependency is not added into the list of class paths. 
>
> Any ideas how I can resolve this? 
>
> -- 
> 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/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Could not locate ring/adapter/jetty__init.class or ring/adapter/jetty.clj on classpath although it's there

2015-10-22 Thread Colin Yates
Not sure why that isn’t working but it is highly recommended not to depend on 
transitive dependencies. If you need a lib for :compile scope (rather than 
:provided) then you should (must?) declare that; projectC should depend 
directly on ring-jetty-adapter in this case.

> On 22 Oct 2015, at 10:21, Timur  wrote:
> 
> Hi all, 
> 
> I have a multi-project set-up. Base project A depends on 
> [ring/ring-jetty-adapter "1.4.0"], a project B depends on this project A 
> which is included in project C. So in simple words dependency graph: 
> 
> [ring/ring-jetty-adapter "1.4.0"] -> project A -> project B -> project C
> 
> When I run repl in Cider for project B. It works without any problems. 
> However, when I run it for project C it cannot locate ring/adapter/jetty. The 
> dependency is not added into the list of class paths. 
> 
> Any ideas how I can resolve this? 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com 
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Could not locate ring/adapter/jetty__init.class or ring/adapter/jetty.clj on classpath although it's there

2015-10-22 Thread Timur
Hi all, 

I have a multi-project set-up. Base project A depends on 
[ring/ring-jetty-adapter "1.4.0"], a project B depends on this project A 
which is included in project C. So in simple words dependency graph: 

[ring/ring-jetty-adapter "1.4.0"] -> project A -> project B -> project C

When I run repl in Cider for project B. It works without any problems. 
However, when I run it for project C it cannot locate ring/adapter/jetty. 
The dependency is not added into the list of class paths. 

Any ideas how I can resolve this? 

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to troubleshoot FileNotFoundException: Could not locate clojure/tools/namespace/parse...?

2014-04-04 Thread Jakub Holy
Thank you all!

@Stuart Great to know that 0.2.1 is backwards compatible.

@Sean You are right about running it separately. But I am lazy and it is
easier to be able to just run (sdoc) from repl and get the ns browser up.
On the other hand, it is perhaps not so smart to pollute one's profile with
all possible tools and then spend hours debugging conflicts :)


2014-04-03 23:34 GMT+02:00 Stuart Sierra :

>
>
> On Wednesday, April 2, 2014 7:49:07 AM UTC-4, Jakub Holy wrote:
>>
>> When starting lein (namely lein ring server) I got a little helpful
>> exception and stack trace with the key line being:
>>
>> FileNotFoundException: Could not locate 
>> clojure/tools/namespace/parse__init.class
>> or clojure/tools/namespace/parse.clj on classpath
>>
>
>
> This could be caused by different libraries or plugins depending on
> different versions of tools.namespace.
>
> clojure.tools.namespace.parse is present starting with tools.namespace
> version 0.2.0.
>
> Note: In tools.namespace version 0.2.0 I removed the namespace
> `clojure.tools.namespace` which was present in 0.1.x. After learning that
> this caused problems, I added the deprecated namespace back in version
> 0.2.1.
>
> You can use `lein deps :tree` to figure out which version is getting
> included in your project.
>
> You can add an explicit dependency in your project.clj on a version that
> you know is compatible with all the libraries/plugins you want to use.
>
> In this case, the latest version of tools.namespace is backwards
> compatible with 0.1.X versions. If that were not the case, you'd be out of
> luck.
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@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+unsubscr...@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 a topic in the
> Google Groups "Clojure" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/clojure/h3U0zx9kEvo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Forget software. Strive to make an impact, deliver a valuable change.*

* (**Vær så snill og hjelp meg med å forbedre norsken **min –** skriftlig
og muntlig. Takk!**)*

Jakub Holy
Solutions Engineer | +47 966 23 666
Iterate AS | www.iterate.no
The Lean Software Development Consultancy
- http://theholyjava.wordpress.com/ -

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to troubleshoot FileNotFoundException: Could not locate clojure/tools/namespace/parse...?

2014-04-03 Thread Stuart Sierra


On Wednesday, April 2, 2014 7:49:07 AM UTC-4, Jakub Holy wrote:
>
> When starting lein (namely lein ring server) I got a little helpful 
> exception and stack trace with the key line being:
>
> FileNotFoundException: Could not locate 
> clojure/tools/namespace/parse__init.class or 
> clojure/tools/namespace/parse.clj on classpath
>


This could be caused by different libraries or plugins depending on 
different versions of tools.namespace.

clojure.tools.namespace.parse is present starting with tools.namespace 
version 0.2.0.

Note: In tools.namespace version 0.2.0 I removed the namespace 
`clojure.tools.namespace` which was present in 0.1.x. After learning that 
this caused problems, I added the deprecated namespace back in version 
0.2.1.

You can use `lein deps :tree` to figure out which version is getting 
included in your project.

You can add an explicit dependency in your project.clj on a version that 
you know is compatible with all the libraries/plugins you want to use.

In this case, the latest version of tools.namespace is backwards compatible 
with 0.1.X versions. If that were not the case, you'd be out of luck.

 

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to troubleshoot FileNotFoundException: Could not locate clojure/tools/namespace/parse...?

2014-04-03 Thread Sean Corfield
On Apr 3, 2014, at 4:30 AM, Jakub Holy  wrote:
> The stack trace points to ns-tracker  as the cause and indeed removing it 
> fixes the problem. However it is actually conflict between ns-tracker and 
> clj-ns-browser that causes the failure; removing any one fixes it. But the 
> stack trace points only to ns-tracker (I guess we actually cannot expect more 
> from it.) Thank you for reminding me of lein deps :tree, I should finally 
> remember to use it. It unfortunately does not mention clj-ns-browser at all 
> (I have it among user dependencies in profile.clj). Any idea why could that 
> be?

I believe the answer is that clj-ns-browser is a tool that you run separately 
on your code, rather than something that runs as part of your code - so there's 
no execution path in your code that crosses into clj-ns-browser. However, 
Leiningen will merge in your :user dependencies from profiles.clj - which is 
why you get the conflict.

You might solve this by putting clj-ns-browser in a separate profile, say, 
:browse and then explicitly using that profile when you want to fire up 
clj-ns-browser (via lein's with-profile feature).

Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)





signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: How to troubleshoot FileNotFoundException: Could not locate clojure/tools/namespace/parse...?

2014-04-03 Thread Jakub Holy
Hello Sean,

Thank you for your asnwer! It was a nice and helpful demonstration of how
to read stack traces better.

The stack trace points to *ns-tracker*  as the cause and indeed removing it
fixes the problem. However it is actually conflict between ns-tracker and
*clj-ns-browser* that causes the failure; removing any one fixes it. But
the stack trace points only to ns-tracker (I guess we actually cannot
expect more from it.) Thank you for reminding me of lein deps :tree, I
should finally remember to use it. It unfortunately does not mention
clj-ns-browser at all (I have it among user dependencies in profile.clj).
Any idea why could that be?

Thank you!


2014-04-03 0:01 GMT+02:00 Sean Corfield :

> On Apr 2, 2014, at 4:49 AM, Jakub Holy  wrote:
>
> *The problem is that the stack trace contains no indication that it is
> clj-ns-browser that is causing the problem.* I would like to know if
> there are any tricks to troubleshoot these problems other than binary
> search through deps/plugins in profile.clj.
>
>
> Well you can use: lein deps :tree
>
> That will show you any version conflicts as well as the paths by which
> those conflicts are reached - and it will suggest exclusions to resolve the
> conflicts (although some version conflicts can't be resolved as-is - you
> must upgrade one or other of your dependencies to get things working).
>
> But if you want to start from the stack trace...
>
> A lot of the stack trace can be thrown away / ignored which helps narrow
> things down...
>
> $ lein ring server
> Exception in thread "main" java.io.FileNotFoundException: Could not locate
> clojure/tools/namespace/parse__init.class or
> clojure/tools/namespace/parse.clj on classpath: ,
> compiling:(ns_tracker/parse.clj:1:1)
>
>
> ^^^ This tells us it failed to load clojure.tools.namespace.parse while
> compiling ns-tracker.parse...
>
> at ns_tracker.core$eval514$loading__4958__auto515.invoke(core.clj:1)
>  at ns_tracker.core$eval514.invoke(core.clj:1)
>
>
> ^^^ ...which it found in ns-tracker.core...
>
> at
> ring.middleware.reload$eval508$loading__4958__auto509.invoke(reload.clj:1)
>  at ring.middleware.reload$eval508.invoke(reload.clj:1)
>
>
> ^^^ ...which it found in ring.middleware.reload...
>
> at
> ring.server.standalone$eval15$loading__4958__auto16.invoke(standalone.clj:1)
>  at ring.server.standalone$eval15.invoke(standalone.clj:1)
>
>
> ^^^ ...which it found in ring.server.standalone...
>
> at
> ring.server.leiningen$eval9$loading__4958__auto10.invoke(leiningen.clj:1)
>  at ring.server.leiningen$eval9.invoke(leiningen.clj:1)
>
>
> ^^^ ...and now we're at the top-level (since this was invoked from the
> user namespace):
>
> at user$eval5.invoke(form-init6357505187919130689.clj:1)
>
>
> And because all these seem to be at line 1, they're likely the (ns ...)
> forms and so we have part of the dependency chain. I mostly just skipped
> over all the clojure.* stuff except for noting (in my head) that
> clojure.core/load and clojure.core/use were called along that path.
>
> Does that help at all?
>
> Sean Corfield -- (904) 302-SEAN
> An Architect's View -- http://corfield.org/
>
> "Perfection is the enemy of the good."
> -- Gustave Flaubert, French realist novelist (1821-1880)
>
>
>
>


-- 
*Forget software. Strive to make an impact, deliver a valuable change.*

* (**Vær så snill og hjelp meg med å forbedre norsken **min –** skriftlig
og muntlig. Takk!**)*

Jakub Holy
Solutions Engineer | +47 966 23 666
Iterate AS | www.iterate.no
The Lean Software Development Consultancy
- http://theholyjava.wordpress.com/ -

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to troubleshoot FileNotFoundException: Could not locate clojure/tools/namespace/parse...?

2014-04-02 Thread Sean Corfield
On Apr 2, 2014, at 4:49 AM, Jakub Holy  wrote:
> The problem is that the stack trace contains no indication that it is 
> clj-ns-browser that is causing the problem. I would like to know if there are 
> any tricks to troubleshoot these problems other than binary search through 
> deps/plugins in profile.clj.

Well you can use: lein deps :tree

That will show you any version conflicts as well as the paths by which those 
conflicts are reached - and it will suggest exclusions to resolve the conflicts 
(although some version conflicts can't be resolved as-is - you must upgrade one 
or other of your dependencies to get things working).

But if you want to start from the stack trace...

A lot of the stack trace can be thrown away / ignored which helps narrow things 
down...

> $ lein ring server
> Exception in thread "main" java.io.FileNotFoundException: Could not locate 
> clojure/tools/namespace/parse__init.class or 
> clojure/tools/namespace/parse.clj on classpath: , 
> compiling:(ns_tracker/parse.clj:1:1)

^^^ This tells us it failed to load clojure.tools.namespace.parse while 
compiling ns-tracker.parse...

>   at ns_tracker.core$eval514$loading__4958__auto515.invoke(core.clj:1)
>   at ns_tracker.core$eval514.invoke(core.clj:1)

^^^ ...which it found in ns-tracker.core...

>   at 
> ring.middleware.reload$eval508$loading__4958__auto509.invoke(reload.clj:1)
>   at ring.middleware.reload$eval508.invoke(reload.clj:1)

^^^ ...which it found in ring.middleware.reload...

>   at 
> ring.server.standalone$eval15$loading__4958__auto16.invoke(standalone.clj:1)
>   at ring.server.standalone$eval15.invoke(standalone.clj:1)

^^^ ...which it found in ring.server.standalone...

>   at 
> ring.server.leiningen$eval9$loading__4958__auto10.invoke(leiningen.clj:1)
>   at ring.server.leiningen$eval9.invoke(leiningen.clj:1)

^^^ ...and now we're at the top-level (since this was invoked from the user 
namespace):

>   at user$eval5.invoke(form-init6357505187919130689.clj:1)

And because all these seem to be at line 1, they're likely the (ns ...) forms 
and so we have part of the dependency chain. I mostly just skipped over all the 
clojure.* stuff except for noting (in my head) that clojure.core/load and 
clojure.core/use were called along that path.

Does that help at all?

Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)





signature.asc
Description: Message signed with OpenPGP using GPGMail


How to troubleshoot FileNotFoundException: Could not locate clojure/tools/namespace/parse...?

2014-04-02 Thread Jakub Holy
When starting lein (namely lein ring server) I got a little helpful 
exception and stack trace with the key line being:

FileNotFoundException: Could not locate 
clojure/tools/namespace/parse__init.class or 
clojure/tools/namespace/parse.clj on classpath

I have narrowed it down to the dependency [clj-ns-browser "1.3.1"] in 
myprofile.clj.

*The problem is that the stack trace contains no indication that it is 
clj-ns-browser that is causing the problem.* I would like to know if there 
are any tricks to troubleshoot these problems other than binary search 
through deps/plugins in profile.clj.

Thank you!

Here is the full stack trace:

$ lein ring server
Exception in thread "main" java.io.FileNotFoundException: Could not locate 
clojure/tools/namespace/parse__init.class or 
clojure/tools/namespace/parse.clj on classpath: , 
compiling:(ns_tracker/parse.clj:1:1)
at clojure.lang.Compiler.load(Compiler.java:7142)
at clojure.lang.RT.loadResourceScript(RT.java:370)
at clojure.lang.RT.loadResourceScript(RT.java:361)
at clojure.lang.RT.load(RT.java:440)
at clojure.lang.RT.load(RT.java:411)
at clojure.core$load$fn__5066.invoke(core.clj:5641)
at clojure.core$load.doInvoke(core.clj:5640)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:5446)
at clojure.core$load_lib$fn__5015.invoke(core.clj:5486)
at clojure.core$load_lib.doInvoke(core.clj:5485)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:626)
at clojure.core$load_libs.doInvoke(core.clj:5524)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:628)
at clojure.core$use.doInvoke(core.clj:5618)
at clojure.lang.RestFn.invoke(RestFn.java:512)
at ns_tracker.core$eval514$loading__4958__auto515.invoke(core.clj:1)
at ns_tracker.core$eval514.invoke(core.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:6703)
at clojure.lang.Compiler.eval(Compiler.java:6692)
at clojure.lang.Compiler.load(Compiler.java:7130)
at clojure.lang.RT.loadResourceScript(RT.java:370)
at clojure.lang.RT.loadResourceScript(RT.java:361)
at clojure.lang.RT.load(RT.java:440)
at clojure.lang.RT.load(RT.java:411)
at clojure.core$load$fn__5066.invoke(core.clj:5641)
at clojure.core$load.doInvoke(core.clj:5640)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:5446)
at clojure.core$load_lib$fn__5015.invoke(core.clj:5486)
at clojure.core$load_lib.doInvoke(core.clj:5485)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:626)
at clojure.core$load_libs.doInvoke(core.clj:5524)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:628)
at clojure.core$use.doInvoke(core.clj:5618)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at 
ring.middleware.reload$eval508$loading__4958__auto509.invoke(reload.clj:1)
at ring.middleware.reload$eval508.invoke(reload.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:6703)
at clojure.lang.Compiler.eval(Compiler.java:6692)
at clojure.lang.Compiler.load(Compiler.java:7130)
at clojure.lang.RT.loadResourceScript(RT.java:370)
at clojure.lang.RT.loadResourceScript(RT.java:361)
at clojure.lang.RT.load(RT.java:440)
at clojure.lang.RT.load(RT.java:411)
at clojure.core$load$fn__5066.invoke(core.clj:5641)
at clojure.core$load.doInvoke(core.clj:5640)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:5446)
at clojure.core$load_lib$fn__5015.invoke(core.clj:5486)
at clojure.core$load_lib.doInvoke(core.clj:5485)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:626)
at clojure.core$load_libs.doInvoke(core.clj:5524)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:628)
at clojure.core$use.doInvoke(core.clj:5618)
at clojure.lang.RestFn.invoke(RestFn.java:512)
at 
ring.server.standalone$eval15$loading__4958__auto16.invoke(standalone.clj:1)
at ring.server.standalone$eval15.invoke(standalone.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:6703)
at clojure.lang.Compiler.eval(Compiler.java:6692)
at clojure.lang.Compiler.load(Compiler.java:7130)
at clojure.lang.RT.loadResourceScript(RT.java:370)
at clojure.lang.RT.loadResourceScript(RT.java:361)
at clojure.lang.RT.load(RT.java:440)
at clojure.lang.RT.load(RT.java:411)
at clojure.core$load$fn__5066.invoke(core.clj:5641)
at clojure.core$load.doInvoke(core.clj:5640)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:5446)
at clojure.core$load_lib$fn__5015.invoke(core.clj:5486)
at clojure.core$load_lib.doInvoke(core.clj:5485)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:626)
at clojure.core$load_libs.doInvoke(core.clj:5524)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:626)
at clojure.core$require.doInvoke(core.clj:5607)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at 
ring.se

Re: Could not locate clojure/data/json__init.class or clojure/data/json.clj on classpath

2012-10-25 Thread larry google groups
>Why don't you have clojure.data.json in your dependencies in 
>project.clj? That seems like a problem to me. 

Ah, hell. Looks like I accidentally erased that line. Thanks for pointing 
that out. 

svn diff -r r3166:3250 project.clj 
Index: project.clj
===
--- project.clj(revision 3166)
+++ project.clj(revision 3250)
@@ -1,8 +1,9 @@
-(defproject who-is-logged-in "1.0.1"
+(defproject who-is-logged-in "1.1"
   :dependencies [[org.clojure/clojure "1.3.0"]
  [net.cgrand/moustache "1.1.0"]
  [ring "1.1.5"]
- [ring/ring-jetty-adapter "1.1.5"]]
+ [ring/ring-jetty-adapter "1.1.5"]
+ [org.clojure/data.json "0.2.0"]]
   :main who-is-logged-in.core
-  :jvm-opts ["-Xmx4000m"])
\ No newline at end of file
+  :jvm-opts ["-Xmx1000m"])
\ No newline at end of file


On Thursday, October 25, 2012 1:01:54 PM UTC-4, larry google groups wrote:
>
> I asked this previously but I thought I would start a new thread to go 
> into more detail. This is driving me crazy. I was using json in my app and 
> everything was working great. Then I did something, but I don't know what. 
> Now it is broken. 
>
> My project.clj is:
>
> (defproject who-is-logged-in "1.1"
>   :description "When users arrive "
>   :dependencies [
>  [org.clojure/clojure "1.3.0"]
>  [net.cgrand/moustache "1.1.0"]
>  [ring "1.1.5"]
>  [ring/ring-jetty-adapter "1.1.5"]
>  ]
>   :main who-is-logged-in.core
>   :jvm-opts ["-Xmx1000m"])
>
>
> and the top of core.clj looks like this:
>
> (ns who-is-logged-in.core
>   (:gen-class)
>   (:import (java.util Date)
>(java.io File))
>   (:require clojure.string clojure.java.io who-is-logged-in.memory_display
> [clojure.data.json :as json])
>   (:use   [net.cgrand.moustache :only [app delegate]]
>   [ring.util.response]
>   [ring.middleware.params]
>   [ring.adapter.jetty :only [run-jetty]]))
>
> I run "lein deps" and then "lein compile". I get this error:
>
> Exception in thread "main" java.io.FileNotFoundException: Could not locate 
> clojure/data/json__init.class or clojure/data/json.clj on classpath: , 
> compiling:(core.clj:1)
> at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3342)
> at clojure.lang.Compiler.compile1(Compiler.java:6985)
> at clojure.lang.Compiler.compile1(Compiler.java:6975)
> at clojure.lang.Compiler.compile(Compiler.java:7046)
> at clojure.lang.RT.compile(RT.java:385)
> at clojure.lang.RT.load(RT.java:425)
> at clojure.lang.RT.load(RT.java:398)
> at clojure.core$load$fn__4610.invoke(core.clj:5386)
> at clojure.core$load.doInvoke(core.clj:5385)
> at clojure.lang.RestFn.invoke(RestFn.java:408)
> at clojure.core$load_one.invoke(core.clj:5200)
> at clojure.core$compile$fn__4615.invoke(core.clj:5397)
> at clojure.core$compile.invoke(core.clj:5396)
> at user$eval27.invoke(NO_SOURCE_FILE:1)
> at clojure.lang.Compiler.eval(Compiler.java:6465)
> at clojure.lang.Compiler.eval(Compiler.java:6455)
> at clojure.lang.Compiler.eval(Compiler.java:6431)
> at clojure.core$eval.invoke(core.clj:2795)
> at clojure.main$eval_opt.invoke(main.clj:296)
> at clojure.main$initialize.invoke(main.clj:315)
>     at clojure.main$null_opt.invoke(main.clj:348)
> at clojure.main$main.doInvoke(main.clj:426)
> at clojure.lang.RestFn.invoke(RestFn.java:421)
> at clojure.lang.Var.invoke(Var.java:405)
> at clojure.lang.AFn.applyToHelper(AFn.java:163)
> at clojure.lang.Var.applyTo(Var.java:518)
> at clojure.main.main(main.java:37)
> Caused by: java.io.FileNotFoundException: Could not locate 
> clojure/data/json__init.class or clojure/data/json.clj on classpath: 
>
>
> Like I said, this was working, and now it is broken. Can anyone guess why? 
>
>
>
>
>
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Could not locate clojure/data/json__init.class or clojure/data/json.clj on classpath

2012-10-25 Thread Dave Ray
Why don't you have clojure.data.json in your dependencies in
project.clj? That seems like a problem to me.

Dave

On Thu, Oct 25, 2012 at 10:01 AM, larry google groups
 wrote:
> I asked this previously but I thought I would start a new thread to go into
> more detail. This is driving me crazy. I was using json in my app and
> everything was working great. Then I did something, but I don't know what.
> Now it is broken.
>
> My project.clj is:
>
> (defproject who-is-logged-in "1.1"
>   :description "When users arrive "
>   :dependencies [
>  [org.clojure/clojure "1.3.0"]
>  [net.cgrand/moustache "1.1.0"]
>  [ring "1.1.5"]
>  [ring/ring-jetty-adapter "1.1.5"]
>  ]
>   :main who-is-logged-in.core
>   :jvm-opts ["-Xmx1000m"])
>
>
> and the top of core.clj looks like this:
>
> (ns who-is-logged-in.core
>   (:gen-class)
>   (:import (java.util Date)
>(java.io File))
>   (:require clojure.string clojure.java.io who-is-logged-in.memory_display
> [clojure.data.json :as json])
>   (:use   [net.cgrand.moustache :only [app delegate]]
>   [ring.util.response]
>   [ring.middleware.params]
>   [ring.adapter.jetty :only [run-jetty]]))
>
> I run "lein deps" and then "lein compile". I get this error:
>
> Exception in thread "main" java.io.FileNotFoundException: Could not locate
> clojure/data/json__init.class or clojure/data/json.clj on classpath: ,
> compiling:(core.clj:1)
> at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3342)
> at clojure.lang.Compiler.compile1(Compiler.java:6985)
> at clojure.lang.Compiler.compile1(Compiler.java:6975)
> at clojure.lang.Compiler.compile(Compiler.java:7046)
> at clojure.lang.RT.compile(RT.java:385)
> at clojure.lang.RT.load(RT.java:425)
> at clojure.lang.RT.load(RT.java:398)
> at clojure.core$load$fn__4610.invoke(core.clj:5386)
> at clojure.core$load.doInvoke(core.clj:5385)
> at clojure.lang.RestFn.invoke(RestFn.java:408)
> at clojure.core$load_one.invoke(core.clj:5200)
> at clojure.core$compile$fn__4615.invoke(core.clj:5397)
> at clojure.core$compile.invoke(core.clj:5396)
> at user$eval27.invoke(NO_SOURCE_FILE:1)
> at clojure.lang.Compiler.eval(Compiler.java:6465)
> at clojure.lang.Compiler.eval(Compiler.java:6455)
> at clojure.lang.Compiler.eval(Compiler.java:6431)
> at clojure.core$eval.invoke(core.clj:2795)
> at clojure.main$eval_opt.invoke(main.clj:296)
> at clojure.main$initialize.invoke(main.clj:315)
> at clojure.main$null_opt.invoke(main.clj:348)
> at clojure.main$main.doInvoke(main.clj:426)
>     at clojure.lang.RestFn.invoke(RestFn.java:421)
> at clojure.lang.Var.invoke(Var.java:405)
> at clojure.lang.AFn.applyToHelper(AFn.java:163)
> at clojure.lang.Var.applyTo(Var.java:518)
> at clojure.main.main(main.java:37)
> Caused by: java.io.FileNotFoundException: Could not locate
> clojure/data/json__init.class or clojure/data/json.clj on classpath:
>
>
> Like I said, this was working, and now it is broken. Can anyone guess why?
>
>
>
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@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+unsubscr...@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 post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Could not locate clojure/data/json__init.class or clojure/data/json.clj on classpath

2012-10-25 Thread Mayank Jain
To clean do
$ lein clean

Sent from phone. Please excuse brevity.
On Oct 25, 2012 10:36 PM, "Jim foo.bar"  wrote:

> On 25/10/12 18:01, larry google groups wrote:
>
>> (:require clojure.string clojure.java.io who-is-logged-in.memory_**
>> display
>> [clojure.data.json :as json])
>>
>
> I don't like this line...
>
> try:
>
> (:require [clojure.string :as st]
> [clojure.java.io :as io]
> [clojure.data.json :as json]
> [who-is-logged-in.memory_**display :as who]) ;;assuming this
> is an ns you can reach
>
> also try deleting all your class files and recompile...keep your eye on
> the mailing list cos I think something changed with data.json...there is a
> discussion currently going on...
>
> Jim
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@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+unsubscribe@**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 post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Could not locate clojure/data/json__init.class or clojure/data/json.clj on classpath

2012-10-25 Thread Jim foo.bar

On 25/10/12 18:01, larry google groups wrote:

(:require clojure.string clojure.java.io who-is-logged-in.memory_display
[clojure.data.json :as json])


I don't like this line...

try:

(:require [clojure.string :as st]
[clojure.java.io :as io]
[clojure.data.json :as json]
[who-is-logged-in.memory_display :as who]) ;;assuming this 
is an ns you can reach


also try deleting all your class files and recompile...keep your eye on 
the mailing list cos I think something changed with data.json...there is 
a discussion currently going on...


Jim

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Could not locate clojure/data/json__init.class or clojure/data/json.clj on classpath

2012-10-25 Thread larry google groups
I asked this previously but I thought I would start a new thread to go into 
more detail. This is driving me crazy. I was using json in my app and 
everything was working great. Then I did something, but I don't know what. 
Now it is broken. 

My project.clj is:

(defproject who-is-logged-in "1.1"
  :description "When users arrive "
  :dependencies [
 [org.clojure/clojure "1.3.0"]
 [net.cgrand/moustache "1.1.0"]
 [ring "1.1.5"]
 [ring/ring-jetty-adapter "1.1.5"]
 ]
  :main who-is-logged-in.core
  :jvm-opts ["-Xmx1000m"])


and the top of core.clj looks like this:

(ns who-is-logged-in.core
  (:gen-class)
  (:import (java.util Date)
   (java.io File))
  (:require clojure.string clojure.java.io who-is-logged-in.memory_display
[clojure.data.json :as json])
  (:use   [net.cgrand.moustache :only [app delegate]]
  [ring.util.response]
  [ring.middleware.params]
  [ring.adapter.jetty :only [run-jetty]]))

I run "lein deps" and then "lein compile". I get this error:

Exception in thread "main" java.io.FileNotFoundException: Could not locate 
clojure/data/json__init.class or clojure/data/json.clj on classpath: , 
compiling:(core.clj:1)
at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3342)
at clojure.lang.Compiler.compile1(Compiler.java:6985)
at clojure.lang.Compiler.compile1(Compiler.java:6975)
at clojure.lang.Compiler.compile(Compiler.java:7046)
at clojure.lang.RT.compile(RT.java:385)
at clojure.lang.RT.load(RT.java:425)
at clojure.lang.RT.load(RT.java:398)
at clojure.core$load$fn__4610.invoke(core.clj:5386)
at clojure.core$load.doInvoke(core.clj:5385)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:5200)
at clojure.core$compile$fn__4615.invoke(core.clj:5397)
at clojure.core$compile.invoke(core.clj:5396)
at user$eval27.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:6465)
at clojure.lang.Compiler.eval(Compiler.java:6455)
at clojure.lang.Compiler.eval(Compiler.java:6431)
at clojure.core$eval.invoke(core.clj:2795)
at clojure.main$eval_opt.invoke(main.clj:296)
at clojure.main$initialize.invoke(main.clj:315)
at clojure.main$null_opt.invoke(main.clj:348)
at clojure.main$main.doInvoke(main.clj:426)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at clojure.lang.Var.invoke(Var.java:405)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.Var.applyTo(Var.java:518)
at clojure.main.main(main.java:37)
Caused by: java.io.FileNotFoundException: Could not locate 
clojure/data/json__init.class or clojure/data/json.clj on classpath: 


Like I said, this was working, and now it is broken. Can anyone guess why? 









-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: lein-cljsbuild simple example on Windows XP with lein2, "Could not locate example/routes__init.class or example/routes.clj on classpath"

2012-07-15 Thread Evan Mezeske
You might also want to control for Linux/BSD vs Windows.  From what I can 
tell, there are very few Windows users of lein-cljsbuild (or Leiningen 
even, for that matter), and thus the problems are distributed over 
not-so-many eyeballs.

On Sunday, July 15, 2012 3:52:46 PM UTC-7, George Oliver wrote:
>
>
>
> On Sunday, July 15, 2012 3:15:34 PM UTC-7, Evan Mezeske wrote:
>>
>> > Thanks; do you know of a project that uses the latest cljsbuild with 
>> lein 2 I could try to test?
>>
>> Not off the top of my head.  Unfortunately, github's search tool is junk, 
>> otherwise it might be possible to find something there...
>
>
>
> I had a go with the clojurescript branch of hiccup (
> https://github.com/r0man/hiccup/tree/clojurescript ). From its 
> project.clj it looks like it's using lein2 with cljsbuild 0.2.4. However it 
> seems I'm running into the same issue.  I've sent it to the lein mailing 
> list 
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: lein-cljsbuild simple example on Windows XP with lein2, "Could not locate example/routes__init.class or example/routes.clj on classpath"

2012-07-15 Thread George Oliver


On Sunday, July 15, 2012 3:15:34 PM UTC-7, Evan Mezeske wrote:
>
> > Thanks; do you know of a project that uses the latest cljsbuild with 
> lein 2 I could try to test?
>
> Not off the top of my head.  Unfortunately, github's search tool is junk, 
> otherwise it might be possible to find something there...



I had a go with the clojurescript branch of hiccup (
https://github.com/r0man/hiccup/tree/clojurescript ). From its project.clj 
it looks like it's using lein2 with cljsbuild 0.2.4. However it seems I'm 
running into the same issue.  I've sent it to the lein mailing list 

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: lein-cljsbuild simple example on Windows XP with lein2, "Could not locate example/routes__init.class or example/routes.clj on classpath"

2012-07-15 Thread Evan Mezeske
> Thanks; do you know of a project that uses the latest cljsbuild with lein 
2 I could try to test? I was able to launch the ring server in the advanced 
project, but I'm still failing launching the repl.   

Not off the top of my head.  Unfortunately, github's search tool is junk, 
otherwise it might be possible to find something there...

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: lein-cljsbuild simple example on Windows XP with lein2, "Could not locate example/routes__init.class or example/routes.clj on classpath"

2012-07-15 Thread George Oliver


On Sunday, July 15, 2012 1:17:04 PM UTC-7, Evan Mezeske wrote:
>
> Since Leiningen 2.x has not yet been released, lein-cljsbuild uses 
> Leiningen 1.x for both the example projects, and building the plugin 
> itself.  The problem you ran into is a difference between Leiningen 1.x and 
> 2.x.
>
> I created an issue to make sure that this fact is made more clear: 
> https://github.com/emezeske/lein-cljsbuild/issues/107 .
>


Thanks; do you know of a project that uses the latest cljsbuild with lein 2 
I could try to test? I was able to launch the ring server in the advanced 
project, but I'm still failing launching the repl.  

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: lein-cljsbuild simple example on Windows XP with lein2, "Could not locate example/routes__init.class or example/routes.clj on classpath"

2012-07-15 Thread Evan Mezeske
Since Leiningen 2.x has not yet been released, lein-cljsbuild uses 
Leiningen 1.x for both the example projects, and building the plugin 
itself.  The problem you ran into is a difference between Leiningen 1.x and 
2.x.

I created an issue to make sure that this fact is made more clear: 
https://github.com/emezeske/lein-cljsbuild/issues/107 .

On Sunday, July 15, 2012 9:56:58 AM UTC-7, George Oliver wrote:
>
>
>
> On Sunday, July 15, 2012 12:00:57 AM UTC-7, George Oliver wrote:
>>
>> hi, I'm trying to get lein-cljsbuild running on Windows XP. I copied the 
>> simple example at  
>> https://github.com/emezeske/lein-cljsbuild/tree/master/example-projects/simple
>>  
>
>
>
> I think I found a fix for this; in the example project.clj there is the 
> option 
>
>  :source-path "src-clj"
>
> I changed this to 
>
>:source-paths ["src-clj"]
>
> (per 
> https://github.com/technomancy/leiningen/blob/master/sample.project.clj )
>
> And the example project instructions worked. 
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: lein-cljsbuild simple example on Windows XP with lein2, "Could not locate example/routes__init.class or example/routes.clj on classpath"

2012-07-15 Thread George Oliver


On Sunday, July 15, 2012 12:00:57 AM UTC-7, George Oliver wrote:
>
> hi, I'm trying to get lein-cljsbuild running on Windows XP. I copied the 
> simple example at  
> https://github.com/emezeske/lein-cljsbuild/tree/master/example-projects/simple
>  



I think I found a fix for this; in the example project.clj there is the 
option 

 :source-path "src-clj"

I changed this to 

   :source-paths ["src-clj"]

(per https://github.com/technomancy/leiningen/blob/master/sample.project.clj
 )

And the example project instructions worked. 

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

lein-cljsbuild simple example on Windows XP with lein2, "Could not locate example/routes__init.class or example/routes.clj on classpath"

2012-07-15 Thread George Oliver
hi, I'm trying to get lein-cljsbuild running on Windows XP. I copied the 
simple example at  
https://github.com/emezeske/lein-cljsbuild/tree/master/example-projects/simple 
and 
then did

$ lein cljsbuild once
$ lein ring server-headless 3000

Which gives the error, 

C:\george\work\simple>lein ring server-headless 3000
Exception in thread "main" java.io.FileNotFoundException: Could not locate 
example/routes__init.class or example/routes.clj on classpath:
at clojure.lang.RT.load(RT.java:432)
at clojure.lang.RT.load(RT.java:400)
at clojure.core$load$fn__4890.invoke(core.clj:5415)
at clojure.core$load.doInvoke(core.clj:5414)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:5227)
at clojure.core$load_lib.doInvoke(core.clj:5264)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:603)
at clojure.core$load_libs.doInvoke(core.clj:5298)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:603)
at clojure.core$require.doInvoke(core.clj:5381)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at user$eval1.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:6511)
at clojure.lang.Compiler.eval(Compiler.java:6500)
at clojure.lang.Compiler.eval(Compiler.java:6477)
at clojure.core$eval.invoke(core.clj:2797)
at clojure.main$eval_opt.invoke(main.clj:297)
at clojure.main$initialize.invoke(main.clj:316)
at clojure.main$null_opt.invoke(main.clj:349)
at clojure.main$main.doInvoke(main.clj:427)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at clojure.lang.Var.invoke(Var.java:419)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.Var.applyTo(Var.java:532)
at clojure.main.main(main.java:37)


Does anyone know what the problem might be?

Another weird thing about this is if I try a lein repl from this project, I 
get:

C:\george\work\simple>lein repl
nREPL server started on port 1740
Welcome to REPL-y!
Clojure 1.4.0
Exit: Control+D or (exit) or (quit)
Commands: (user/help)
Docs: (doc function-name-here)
  (find-doc "part-of-name-here")
  Source: (source function-name-here)
nil  (user/sourcery function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
Examples from clojuredocs.org: [clojuredocs or cdoc]
  (user/clojuredocs name-here)
  (user/clojuredocs "ns-here" "name-here")


The cursor then freezes on the last line. 

However doing a lein repl from an empty project made with 'lein new' (and 
making sure Clojure 1.4 is specified in dependencies) works normally. 


thanks for any help, George


-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Could not locate clojure/contrib/string__init.class or clojure/contrib/string.clj on classpath:

2012-06-24 Thread Moritz Ulrich
Try clojure.string: http://clojuredocs.org/clojure_core/clojure.string

It's available in 1.3 and replaces clojure.contrib.string. You  can
also access all methods of java.lang.String via java interop.

On Mon, Jun 25, 2012 at 12:12 AM, עומר כהן  wrote:
> I'm trying to use contrib.string and i'm currently using clojure 1.3...
> Basiclly i need the fuctionalty of . String as split, and such...
>
> On 25 בJun 2012 00:53, "Moritz Ulrich"  wrote:
>>
>>
>> omer  writes:
>>
>> > hi i need help!!!
>> > i have a project to finish but i keep on hitting this error:
>> > Could not locate clojure/contrib/string__init.class or
>> > clojure/contrib/string.clj on classpath:
>> > i tried everything i know (which is not much) and i read tons of metiral
>> > in
>> > the net, but i still
>> > cant figure out how to deal with this!
>> > i am knew to clojure and i cant continue my project!
>> > i would be happy if someone could guide me thoroughly...
>> > thenks...
>>
>> If you're just starting Clojure, I'd use Clojure
>> 1.4. clojure.contrib.string has moved to the namespace
>> clojure.data.string.
>>
>> May I ask you if and what libraries you try to use? You might need to
>> update to newer versions if one of these use clojure.contrib, as it
>> isn't supported with 1.4 anymore.
>>
>> --
>> Moritz Ulrich
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clojure@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+unsubscr...@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 post to this group, send email to clojure@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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Moritz Ulrich

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Could not locate clojure/contrib/string__init.class or clojure/contrib/string.clj on classpath:

2012-06-24 Thread omer
hi i need help!!!
i have a project to finish but i keep on hitting this error: 
Could not locate clojure/contrib/string__init.class or 
clojure/contrib/string.clj on classpath: 
i tried everything i know (which is not much) and i read tons of metiral in 
the net, but i still
cant figure out how to deal with this!
i am knew to clojure and i cant continue my project!
i would be happy if someone could guide me thoroughly...
thenks...

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Could not locate clojure/contrib/duck_streams__init.class or clojure/contrib/duck_streams.clj

2012-04-26 Thread Dave Sann
lein-eclipse works great for me.

The problem is that "duck-streams" is part of the old consolidated clojure 
contrib. Which you can still get - but haven't referenced as a dependency.

try adding

[org.clojure/clojure-contrib "1.2.0"]


to your dependencies.

But be aware that this is all deprecated.

D




On Friday, 27 April 2012 04:07:07 UTC+10, Alex Ott wrote:
>
> lein-eclipse was released 2 years ago... I think, that now it's better 
> to work via pom.xml - generate it with 'lein pom' and import into 
> eclipse 
>
> On Wed, Apr 25, 2012 at 2:55 PM, Chirag Ghiyad  
> wrote: 
> > hi, 
> > 
> > I have created one lein project, 
> > than updating its project.clj with dev-dependency of eclips 
> > 
> > I ran "lein deps" 
> > 
> > it downloaded all dependencies 
> > 
> > but into my.m2/repository directory there is no clojure directory. 
> > and this causes me 
> > 
> > leiningen.eclipse  Problem loading: java.io.FileNotFoundException: 
> > Could not locate clojure/contrib/duck_streams__init.class or clojure/ 
> > contrib/duck_streams.clj on classpath:  (eclipse.clj:1) 
> > 
> > error when i ran "lein help" which abandons me to develop with eclipse 
> > because i cant run my "lein eclipse" command. 
> > 
> > Any solution for this??? 
> > Thanks in advance. 
> > 
> > my project.clj is given below 
> > 
> > (defproject for_test "1.0.0-SNAPSHOT" 
> >  :description "FIXME: write description" 
> >  :dependencies [[org.clojure/clojure "1.2.1"]] 
> >  :dev-dependencies [[lein-eclipse "1.0.0"]] 
> > ) 
> > 
> > Thnks 'n Regards, 
> > chirag ghiyad 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Clojure" group. 
> > To post to this group, send email to clojure@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+unsubscr...@googlegroups.com 
> > For more options, visit this group at 
> > http://groups.google.com/group/clojure?hl=en 
>
>
>
> -- 
> With best wishes,Alex Ott 
> http://alexott.net/ 
> Tiwtter: alexott_en (English), alexott (Russian) 
> Skype: alex.ott 
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Could not locate clojure/contrib/duck_streams__init.class or clojure/contrib/duck_streams.clj

2012-04-26 Thread Alex Ott
lein-eclipse was released 2 years ago... I think, that now it's better
to work via pom.xml - generate it with 'lein pom' and import into
eclipse

On Wed, Apr 25, 2012 at 2:55 PM, Chirag Ghiyad  wrote:
> hi,
>
> I have created one lein project,
> than updating its project.clj with dev-dependency of eclips
>
> I ran "lein deps"
>
> it downloaded all dependencies
>
> but into my.m2/repository directory there is no clojure directory.
> and this causes me
>
> leiningen.eclipse  Problem loading: java.io.FileNotFoundException:
> Could not locate clojure/contrib/duck_streams__init.class or clojure/
> contrib/duck_streams.clj on classpath:  (eclipse.clj:1)
>
> error when i ran "lein help" which abandons me to develop with eclipse
> because i cant run my "lein eclipse" command.
>
> Any solution for this???
> Thanks in advance.
>
> my project.clj is given below
>
> (defproject for_test "1.0.0-SNAPSHOT"
>  :description "FIXME: write description"
>  :dependencies [[org.clojure/clojure "1.2.1"]]
>  :dev-dependencies [[lein-eclipse "1.0.0"]]
> )
>
> Thnks 'n Regards,
> chirag ghiyad
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
With best wishes,                    Alex Ott
http://alexott.net/
Tiwtter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Could not locate clojure/contrib/duck_streams__init.class or clojure/contrib/duck_streams.clj

2012-04-26 Thread Chirag Ghiyad
hi,

I have created one lein project,
than updating its project.clj with dev-dependency of eclips

I ran "lein deps"

it downloaded all dependencies

but into my.m2/repository directory there is no clojure directory.
and this causes me

leiningen.eclipse  Problem loading: java.io.FileNotFoundException:
Could not locate clojure/contrib/duck_streams__init.class or clojure/
contrib/duck_streams.clj on classpath:  (eclipse.clj:1)

error when i ran "lein help" which abandons me to develop with eclipse
because i cant run my "lein eclipse" command.

Any solution for this???
Thanks in advance.

my project.clj is given below

(defproject for_test "1.0.0-SNAPSHOT"
  :description "FIXME: write description"
  :dependencies [[org.clojure/clojure "1.2.1"]]
  :dev-dependencies [[lein-eclipse "1.0.0"]]
)

Thnks 'n Regards,
chirag ghiyad

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en