aysylu / loom

Graph library for Clojure. Mailing list https://groups.google.com/forum/#!forum/loom-clj
http://aysy.lu/loom/
886 stars 108 forks source link

java.lang.NoClassDefFoundError: loom/graph/Graph #119

Open AndreaCrotti opened 5 years ago

AndreaCrotti commented 5 years ago

I'm trying to include loom in a project, and it all works fine in dev mode, but when I build and run the uberjar I get that error

java.lang.NoClassDefFoundError: loom/graph/Graph

I think it's somehow related with aot, but I also tried to add #".*loom.*" to :aot without any difference. I tried with both clojure 1.9 and 1.10, anyone else had the same problem?

AndreaCrotti commented 5 years ago

I tried to reproduce it in an empty project https://github.com/AndreaCrotti/sample-loom/blob/master/project.clj and I can't see the same behaviour, so must be something in my project (which sadly it's not OSS atm).

Any suggestions about what to look for? Thanks

AndreaCrotti commented 5 years ago

I found a solution, apparently it was :aot :all that was breaking it. I have the same in the sample-loom project though and it works there, so a combination of :aot :all and something else I'm not too sure about.