I have run into this (using lein 2.5.0 and 2.4.1) as well. `lein uberjar`
seems to wipe out the pre-generated classes when creating an uberjar.
Shantanu
On Sunday, 4 January 2015 01:09:30 UTC+5:30, Shoeb Bhinderwala wrote:
>
> When I create a uberjar with aot compilation I am surprised to see ".clj"
> files in there. Then when I run the jar with the "java -jar myuberjar"
> command I get a ClassNotFoundException.
>
> For example, I am have the following dependency in my project.clj file:
>
> [org.clojure/java.jdbc "0.3.6"]
>
> However, when running the uberjar I see the following exception
>
> java.lang.ClassNotFoundException: clojure.java.jdbc.Connectable
>
> Inside the uberjar when I traverse to the location \clojure\java\jdbc I
> see only one file "jdbc.clj" and no ".class" files? I don't see the
> Connectable.class file there. I am expecting to see the .class files here
> as I am specifying :aot :all in my project.clj file:
>
> :profiles
> {:dev {:resource-paths ["config_dev"]}
> :stage {:resource-paths ["config_stage"]}
> :prod {:resource-paths ["config_prod"]}
> * :uberjar {:aot :all}})*
>
> Have spent many hours hair pulling but not able to figure out how to solve
> this problem.
>
> Many thanks for your help.
> Regards,
> Shoeb
>
> Leiningen version 2.5.0
> Java version 1.7
> Issue is on both Windows 7 and Linux.
>
>
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.