Fork me on GitHub
#tools-deps
<
2019-04-03
>
lilactown03:04:00

Any examples using deps.edn + packr?

sundbp13:04:03

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

sundbp13:04:29

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?

sundbp13:04:43

The same setup with lein works OK.

sundbp13:04:38

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.

sundbp13:04:03

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.