Fork me on GitHub

Any examples using deps.edn + packr?


I seem to run into some classloader issue when compiling gen-class using clj.


I'm trying to use compile with a gen-class. I get a class not found exception when the constructor is defined taking a class from a lib I'm using. I can import that same class, and changing the type to eg String makes compile work. Any caveat about types for constructor args and class path etc?


The same setup with lein works OK.


It is like the classloader is out of whack. If I start a rebel repl I can import the class etc, and I can compile from the repl. But when passed via the -e flag the same expression gives class not found exception.


If I wrap it into something simple that does the same thing via a -m main method it is OK. But the -e version with same code fails.