To select specific Java (JDK) to use for leiningen, set environment variable JAVA_CMD
For example,
JAVA_CMD=/path/to/bin/java lein repl
Credit: https://gist.github.com/camsaul/c982019fd915510677236cd4b720a583#gistcomment-3439527
To select specific Java (JDK) to use for leiningen, set environment variable JAVA_CMD
For example,
JAVA_CMD=/path/to/bin/java lein repl
Credit: https://gist.github.com/camsaul/c982019fd915510677236cd4b720a583#gistcomment-3439527
$ lein with-profile test repl
Warning: no nREPL dependency detected.
Be sure to include org.clojure/tools.nrepl in :dependencies of your profile.
...
Error loading clojure.tools.nrepl.server: Could not locate clojure/tools/nrepl/server__init.class or clojure/tools/nrepl/server.clj on classpath:
Error loading complete.core: Could not locate complete/core__init.class or complete/core.clj on classpath:
Exception in thread "main" java.lang.ClassNotFoundException: clojure.tools.nrepl.server, compiling:(/private/var/folders/7d/98yf91rn0yz6wbh56h5q7rkh0000gn/T/form-init2792809345387087761.clj:1:1340)The reason is because unlike default profile, tools.nrepl isn't added as dependency for test profile. You can verify this by comparing the output between lein pprint (or lein with-profile default pprint) and lein with-profile test pprint.
$ lein with-profile default,test replWith the command above, lein should start the repl without any errors.
I couldn't find this link when searching with google https://www.collectd.org/documentation/manpages/collectd.conf.html#plugin-postgresq...