<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions and answers in CIDER</title>
<link>https://ask.clojure.org/index.php/qa/tools/cider</link>
<description>Powered by Question2Answer</description>
<item>
<title>Answered: how do you set  -Djdk.attach.allowAttachSelf enabled so that I can interrupt a cider repl in emacs</title>
<link>https://ask.clojure.org/index.php/14697/djdk-attach-allowattachself-enabled-interrupt-cider-emacs?show=14698#a14698</link>
<description>&lt;p&gt;It should be just &quot;-Djdk.attach.allowAttachSelf&quot;, without the word &quot;enabled&quot;. See &lt;a rel=&quot;nofollow&quot; href=&quot;https://nrepl.org/nrepl/installation.html#jvmti&quot;&gt;https://nrepl.org/nrepl/installation.html#jvmti&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;On the CIDER side, it is preferable to customize &lt;code&gt;cider-clojure-cli-global-aliases&lt;/code&gt; instead:&lt;br&gt;
&lt;code&gt;(setq cider-clojure-cli-global-aliases &quot;:dev&quot;)&lt;/code&gt;&lt;/p&gt;
</description>
<category>CIDER</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/14697/djdk-attach-allowattachself-enabled-interrupt-cider-emacs?show=14698#a14698</guid>
<pubDate>Tue, 02 Sep 2025 16:25:43 +0000</pubDate>
</item>
<item>
<title>Unable to locate a Java Runtime</title>
<link>https://ask.clojure.org/index.php/13107/unable-to-locate-a-java-runtime</link>
<description>&lt;p&gt;I try to learn Clojure and follow Clojure for the Brave and True book.&lt;/p&gt;
&lt;p&gt;In &lt;code&gt;core.clj&lt;/code&gt; file, I typed &lt;code&gt;M-x cider-jack-in&lt;/code&gt; command. I see following error:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;error in process sentinel: Could not start nREPL server: The operation couldn’t be completed. Unable to locate a Java Runtime.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I tried both 8 and 17 versions of Java, I verified them via &lt;code&gt;which java&lt;/code&gt; and &lt;code&gt;echo $JAVA_HOME&lt;/code&gt; &lt;/p&gt;
&lt;p&gt;&lt;code&gt;Lein&lt;/code&gt; commands works by themselves.&lt;/p&gt;
&lt;p&gt;Can you help me?&lt;/p&gt;
</description>
<category>CIDER</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/13107/unable-to-locate-a-java-runtime</guid>
<pubDate>Sat, 29 Jul 2023 18:13:11 +0000</pubDate>
</item>
<item>
<title>Answered: cider repl error ClassNotFoundException: jdk.javadoc.doclet.Doclet</title>
<link>https://ask.clojure.org/index.php/12541/cider-error-classnotfoundexception-javadoc-doclet-doclet?show=12543#a12543</link>
<description>&lt;p&gt;I&#039;m sorry you are seeing this error. I&#039;ve done a little googling and found this issue: &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/clojure-emacs/orchard/issues/117&quot;&gt;https://github.com/clojure-emacs/orchard/issues/117&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It seems some jdks have the javadoc classes removed. CIDER (via its dependency orchard) uses these classes to parse java classes.&lt;/p&gt;
&lt;p&gt;Can you tell me the output of &lt;code&gt;java -version&lt;/code&gt; and how you installed java? For instance, for me my output is&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;❯ java -version
openjdk version &quot;17.0.1&quot; 2021-10-19 LTS
OpenJDK Runtime Environment Zulu17.30+15-CA (build 17.0.1+12-LTS)
OpenJDK 64-Bit Server VM Zulu17.30+15-CA (build 17.0.1+12-LTS, mixed mode, sharing)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And i installed it with &lt;code&gt;sdkman&lt;/code&gt;.&lt;/p&gt;
</description>
<category>CIDER</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/12541/cider-error-classnotfoundexception-javadoc-doclet-doclet?show=12543#a12543</guid>
<pubDate>Thu, 12 Jan 2023 16:39:56 +0000</pubDate>
</item>
<item>
<title>Answered: passing command line arguments to clojure via `cider-jack-in` (GNUEmacs 27.1, CIDER 1.2.0)</title>
<link>https://ask.clojure.org/index.php/12308/passing-command-line-arguments-clojure-cider-gnuemacs-cider?show=12309#a12309</link>
<description>&lt;p&gt;You can find some documentation at &lt;a rel=&quot;nofollow&quot; href=&quot;https://metaredux.com/posts/2019/11/02/hard-cider-understanding-the-jack-in-process.html&quot;&gt;https://metaredux.com/posts/2019/11/02/hard-cider-understanding-the-jack-in-process.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For one-off commands you can use the prefix argument &lt;code&gt;C-u&lt;/code&gt; to get prompted for the exact command to use, so &lt;code&gt;C-u M-x cider-jack-in&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;For a more permanent option, to set an alias for cider to use when invoking clojure you can use the &lt;code&gt;cider-clojure-clj-aliases&lt;/code&gt; variable. From its documentation:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;A list of aliases to include when using the clojure cli. Alias names&lt;br&gt;
should be of the form &quot;:foo:bar&quot;. Leading &quot;-A&quot; &quot;-M&quot; &quot;-T&quot; or &quot;-X&quot; are&lt;br&gt;
stripped from aliases then concatenated into the&lt;br&gt;
&quot;-M[your-aliases]:cider/nrepl&quot; form.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;In your case: &lt;code&gt;(setq cider-clojure-clj-aliases &quot;:dev&quot;)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Additionally if you only want to set the value for a specific project and not globally you can make use of project-specific configuration via a &lt;code&gt;.dir-locals.el&lt;/code&gt; file. More info here: &lt;a rel=&quot;nofollow&quot; href=&quot;https://docs.cider.mx/cider/config/project_config.html&quot;&gt;https://docs.cider.mx/cider/config/project_config.html&lt;/a&gt;&lt;/p&gt;
</description>
<category>CIDER</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/12308/passing-command-line-arguments-clojure-cider-gnuemacs-cider?show=12309#a12309</guid>
<pubDate>Wed, 12 Oct 2022 17:51:26 +0000</pubDate>
</item>
<item>
<title>Answered: With Emacs/Cider, what is the way to have local javadocs available?</title>
<link>https://ask.clojure.org/index.php/12117/with-emacs-cider-what-the-way-have-local-javadocs-available?show=12118#a12118</link>
<description>&lt;p&gt;The way is &lt;code&gt;(cider-enrich-classpath t)&lt;/code&gt;, it&#039;s what is documented in &lt;a rel=&quot;nofollow&quot; href=&quot;https://docs.cider.mx&quot;&gt;https://docs.cider.mx&lt;/a&gt; which is our source of truth.&lt;/p&gt;
&lt;p&gt;Note that it&#039;s disabled by default. It is because we found some last-minute issues which have to be solved (and will, soon enough).&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cider-enrich-classpath t&lt;/code&gt; should work, for small-to-medium projects, using Leiningen.&lt;/p&gt;
&lt;p&gt;If not, a detailed issue in the cider repo is much appreciated (please fill all fields carefully).&lt;/p&gt;
</description>
<category>CIDER</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/12117/with-emacs-cider-what-the-way-have-local-javadocs-available?show=12118#a12118</guid>
<pubDate>Wed, 17 Aug 2022 15:13:10 +0000</pubDate>
</item>
</channel>
</rss>