Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AndreaCrotti opened this issue May 31, 2019 · 2 comments
Open

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

AndreaCrotti opened this issue May 31, 2019 · 2 comments

Comments

@AndreaCrotti
Copy link
Contributor

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
Copy link
Contributor Author

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
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant