java.lang.ClassNotFoundException: sun.misc.Launcher 当 运行 启动 repl

java.lang.ClassNotFoundException: sun.misc.Launcher when running boot repl

我正在尝试 运行 boot repl,但出现以下错误。

                                                               java.lang.Thread.run Thread.java:  832   
                                 java.util.concurrent.ThreadPoolExecutor$Worker.run  ThreadPoolExecutor.java:  630
                                  java.util.concurrent.ThreadPoolExecutor.runWorker  ThreadPoolExecutor.java: 1130
                                                java.util.concurrent.FutureTask.run          FutureTask.java:  264
                                                                                ...                               
                                                clojure.core/binding-conveyor-fn/fn                 core.clj: 1938

这里跳过了很多行

                                                    java.lang.ClassLoader.loadClass         ClassLoader.java:  589
                                                                                ...                               
                                                  java.net.URLClassLoader.findClass      URLClassLoader.java:  435
java.lang.ClassNotFoundException: sun.misc.Launcher
      clojure.lang.ExceptionInfo: sun.misc.Launcher

我正在按照有关如何从 spacemacs. The information there was outdated or wrong. The problem was that in my ~/.boot/profile.boot To solve the issue I had to change dependencies from what was on spacemacs site to what was on refactor-nrepl 设置启动的指南进行操作。

(require 'boot.repl)

(swap! boot.repl/*default-dependencies* conj
       '[refactor-nrepl "2.5.1"] 
       '[cider/cider-nrepl "0.25.9"])

(swap! boot.repl/*default-middleware* conj
       'refactor-nrepl.middleware/wrap-refactor)