<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions tagged jdk21</title>
<link>https://ask.clojure.org/index.php/tag/jdk21</link>
<description></description>
<item>
<title>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/attach-allowattachself-enabled-interrupt-cider-repl-emacs</link>
<description>&lt;p&gt;In a long running process I want to interrupt the repl.&lt;br&gt;
if you set deps.edn with the following:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;:aliases {:dev {:jvm-opts [&quot;-Djdk.attach.allowAttachSelf enabled&quot;
                            &quot;-XX:+PreserveFramePointer&quot;
                            &quot;-XX:+UnlockDiagnosticVMOptions&quot;
                            &quot;-XX:+DebugNonSafepoints&quot;]}}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and then in init.el:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;(setq cider-clojure-cli-global-options &quot;-Adev&quot;)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;you can avoid the following error:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ERROR: Cannot stop thread on JDK21+ without -Djdk.attach.allowAttachSelf 
enabled, see https://nrepl.org/nrepl/installation.html#jvmti.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;but the java process still continues&lt;/p&gt;
</description>
<category>CIDER</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/14697/attach-allowattachself-enabled-interrupt-cider-repl-emacs</guid>
<pubDate>Tue, 02 Sep 2025 15:56:27 +0000</pubDate>
</item>
</channel>
</rss>