Re: java.lang.ClassNotFoundException: clojure.lang.Var

2017-07-09 Thread lawrence . krubner
Sorry, that was dumb. Obviously I meant to call with classpath. It works 
fine with standalone. 



On Monday, July 10, 2017 at 1:27:53 AM UTC-4, lawrence...@gmail.com wrote:
>
> I was trying to knock out a quick project today, and most of it was 
> copy-and-paste of another project that I have. This isn't really a big 
> project, despite the long list of dependencies (which I could trim 
> somewhat). 
>
> Anyway, if I run "lein clean" and then "lein uberjar" it seems to compile 
> just fine. 
>
> But then I do this: 
>
>  java -jar target/scan-database-find-similar-items.jar 
>
> and get this: 
>
> Exception in thread "main" java.lang.NoClassDefFoundError: clojure/lang/Var
> at scan_database_find_similar_items.core.(Unknown Source)
> Caused by: java.lang.ClassNotFoundException: clojure.lang.Var
> at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ... 1 more
>
> What would cause this?
>
> Below is my project.clj file
>
>
> (defproject scan-database-find-similar-items "1.0"
>   :description "scan-database-find-similar-items compares items in the 
> database to other items in the database, in the hopes of finding fake 
> profiles that are duplicates. "
>   :url "https://github.com/jazz/scan-database-find-similar-items;
>   :license {:name "Copyright Sameday.com 2017"
> :url "http://www.sameday.com/"}
>   :dependencies [
>  [org.clojure/clojure "1.8.0"]
>  [org.clojure/test.check "0.9.0"]
>  [org.clojure/java.jdbc "0.7.0-alpha1"]
>  [org.clojure/data.json "0.2.5"]
>  [org.clojure/tools.namespace "0.2.4"]
>  [org.clojure/core.incubator "0.1.3"]
>  [org.clojure/core.match "0.3.0-alpha4"]
>  
>  [clj-stacktrace "0.2.7"]
>  [clj-time "0.6.0"]
>  
>  [joda-time/joda-time "2.9.4"]
>
>  [com.taoensso/timbre "4.3.1"]
>  [defun "0.3.0-RC1"]
>  [slingshot "0.12.2"]
>  [manifold "0.1.2"]
>  [me.raynes/fs "1.4.4"]
>  [overtone/at-at "1.2.0"]
>  [mysql/mysql-connector-java "6.0.5"]
>  [com.novemberain/monger "3.1.0"]
>  [cheshire "5.3.1"]
>  
>  ;; TODO: remove one of these. both are in use
>  [clj-http "2.3.0"]
>  [http-kit "2.2.0"]
>  ]
>
>   :plugins [
> [lein-localrepo "0.5.3"] ;; install java artifacts locally, 
> even using fake artifactId
> [lein-cprint "1.0.0"] ;; the same as lein-pprint but with 
> colors
> [lein-exec "0.3.5"] ;; execute text as Clojure code
> [lein-nevam "0.1.2"] ;; convert a Maven pom to a project.clj
> [lein-vanity "0.2.0"] ;; lines of code for vanity's sake
> [lein-expectations "0.0.8"] ;; run expectations tests
> [lein-collisions "0.1.4"] ;; find classpath collisions
> ]
>
>   :aot :all  
>   :source-paths  ["src/clojure"]
>   :java-source-paths ["src/java"]
>   :resource-paths ["src/main/resource"] ; Non-code files included in 
> classpath/jar.
>
>   ;; Name of the jar file produced. Will be placed inside :target-path.
>   ;; Including %s will splice the project version into the filename.
>   :jar-name "scan-database-find-similar-items.jar"
>   ;; As above, but for uberjar.
>   :uberjar-name "scan-database-find-similar-items-standalone.jar"
>   
>   ;; What to do in the case of version issues. Defaults to :ranges, which
>   ;; warns when version ranges are present anywhere in the dependency tree,
>   ;; but can be set to true to warn for both ranges and overrides, or 
> :abort
>   ;; to exit in the case of ranges or overrides.
>   ;;  :pedantic? :abort
>   
>
>   :disable-implicit-clean true
>   :warn-on-reflection true
>   :main scan-database-find-similar-items.core
>   :jvm-opts ["-Xms100m" "-Xmx1000m" "-XX:-UseCompressedOops"])
>
>
>
>

-- 
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 

java.lang.ClassNotFoundException: clojure.lang.Var

2017-07-09 Thread lawrence . krubner
I was trying to knock out a quick project today, and most of it was 
copy-and-paste of another project that I have. This isn't really a big 
project, despite the long list of dependencies (which I could trim 
somewhat). 

Anyway, if I run "lein clean" and then "lein uberjar" it seems to compile 
just fine. 

But then I do this: 

 java -jar target/scan-database-find-similar-items.jar 

and get this: 

Exception in thread "main" java.lang.NoClassDefFoundError: clojure/lang/Var
at scan_database_find_similar_items.core.(Unknown Source)
Caused by: java.lang.ClassNotFoundException: clojure.lang.Var
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 1 more

What would cause this?

Below is my project.clj file


(defproject scan-database-find-similar-items "1.0"
  :description "scan-database-find-similar-items compares items in the 
database to other items in the database, in the hopes of finding fake 
profiles that are duplicates. "
  :url "https://github.com/jazz/scan-database-find-similar-items;
  :license {:name "Copyright Sameday.com 2017"
:url "http://www.sameday.com/"}
  :dependencies [
 [org.clojure/clojure "1.8.0"]
 [org.clojure/test.check "0.9.0"]
 [org.clojure/java.jdbc "0.7.0-alpha1"]
 [org.clojure/data.json "0.2.5"]
 [org.clojure/tools.namespace "0.2.4"]
 [org.clojure/core.incubator "0.1.3"]
 [org.clojure/core.match "0.3.0-alpha4"]
 
 [clj-stacktrace "0.2.7"]
 [clj-time "0.6.0"]
 
 [joda-time/joda-time "2.9.4"]

 [com.taoensso/timbre "4.3.1"]
 [defun "0.3.0-RC1"]
 [slingshot "0.12.2"]
 [manifold "0.1.2"]
 [me.raynes/fs "1.4.4"]
 [overtone/at-at "1.2.0"]
 [mysql/mysql-connector-java "6.0.5"]
 [com.novemberain/monger "3.1.0"]
 [cheshire "5.3.1"]
 
 ;; TODO: remove one of these. both are in use
 [clj-http "2.3.0"]
 [http-kit "2.2.0"]
 ]

  :plugins [
[lein-localrepo "0.5.3"] ;; install java artifacts locally, 
even using fake artifactId
[lein-cprint "1.0.0"] ;; the same as lein-pprint but with colors
[lein-exec "0.3.5"] ;; execute text as Clojure code
[lein-nevam "0.1.2"] ;; convert a Maven pom to a project.clj
[lein-vanity "0.2.0"] ;; lines of code for vanity's sake
[lein-expectations "0.0.8"] ;; run expectations tests
[lein-collisions "0.1.4"] ;; find classpath collisions
]

  :aot :all  
  :source-paths  ["src/clojure"]
  :java-source-paths ["src/java"]
  :resource-paths ["src/main/resource"] ; Non-code files included in 
classpath/jar.

  ;; Name of the jar file produced. Will be placed inside :target-path.
  ;; Including %s will splice the project version into the filename.
  :jar-name "scan-database-find-similar-items.jar"
  ;; As above, but for uberjar.
  :uberjar-name "scan-database-find-similar-items-standalone.jar"
  
  ;; What to do in the case of version issues. Defaults to :ranges, which
  ;; warns when version ranges are present anywhere in the dependency tree,
  ;; but can be set to true to warn for both ranges and overrides, or :abort
  ;; to exit in the case of ranges or overrides.
  ;;  :pedantic? :abort
  

  :disable-implicit-clean true
  :warn-on-reflection true
  :main scan-database-find-similar-items.core
  :jvm-opts ["-Xms100m" "-Xmx1000m" "-XX:-UseCompressedOops"])



-- 
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: [ClojureScript] [ANN] Orchestra 2017.07.04-1 (now supporting ClojureScript)

2017-07-09 Thread Daniel Compton
Thanks Jeaye, I'm really happy to see this for CLJS too!

Orchestra has been an excellent development time addition to our apps.
Checking the :ret specs is very helpful for finding the error in code as
close as possible to the problem, rather than further downstream when a
further spec fails.

On Sun, Jul 9, 2017 at 6:06 AM Jeaye  wrote:

> Folks,
>
> I'm happy to announce that a new version of Orchestra has been released
> this past week.
>
> # Where to find it?
> https://github.com/jeaye/orchestra
> [orchestra "2017.07.04-1"]
>
> # What is it?
> Orchestra is a Clojure(Script) library made as a drop-in replacement for
> clojure.spec.test.alpha, which provides custom instrumentation that
> validates all aspects of function specs. By default, clojure.spec will only
> instrument :args. This leaves out :ret and :fn from automatic validation;
> Orchestra checks all of them for you.
>
> # What changed since 0.3.0?
> ClojureScript support!
>
> # Any more info?
> You can read my call to arms for instrumentation here:
> https://blog.jeaye.com/2017/05/31/clojure-spec/ Also, some notes on
> porting Orchestra to ClojureScript, which extend to porting Clojure
> projects to ClojureScript in general, here:
> https://blog.jeaye.com/2017/06/30/orchestra-cljs/
>
> # When should I use it?
> I strongly believe we can benefit from this instrumentation throughout the
> entire development cycle, so I recommend both your tests and your
> developments builds use instrumentation by default. If any functions
> misbehave, you'll know immediately and you'll have the context to find out
> why.
>
> Cheers,
> Jeaye
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescr...@googlegroups.com.
> Visit this group at https://groups.google.com/group/clojurescript.
>

-- 
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: Clojure <--> LISP

2017-07-09 Thread Stuart Sierra
Hi,

Clojure is syntactically similar to other Lisps, but it is its own language 
with a unique design. In particular, Clojure emphasizes immutable data 
structures and a pure functional programming style more than “classic” Lisp 
does. 

Familiarity with other Lisp-like languages will make it easier to learn 
Clojure, but there is still a lot to learn.

Unlike most other Lisps, Clojure is designed to be “hosted” in another 
language runtime such as Java or JavaScript. Most Clojure programs rely on 
the host language for environment-specific capabilities such as I/O. You 
don’t need to worry much about this to get started, but once you start 
working on real applications you will need to get familiar with the 
standard library of the host language.

Good luck, and have fun!

–S


On Sunday, July 9, 2017 at 7:30:39 AM UTC-4, HappyMacXL wrote:
>
> Hi all,
>
> I'm new to Clojure.  How close is it to LISP (MacLISP for example)?
>
> I ask because i'm also learning ZIL (Zork Implementation Language) which 
> is a descendant of the original LISP.  Well, actually it's a 'lite' version 
> of MDL ("Muddle").
>
> Thanks!
>
> :)
>

-- 
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.


Clojure <--> LISP

2017-07-09 Thread HappyMacXL
Hi all,

I'm new to Clojure.  How close is it to LISP (MacLISP for example)?

I ask because i'm also learning ZIL (Zork Implementation Language) which is 
a descendant of the original LISP.  Well, actually it's a 'lite' version of 
MDL ("Muddle").

Thanks!

:)

-- 
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.