nrepl

https://github.com/nrepl/nrepl || https://nrepl.org
awb99 2021-06-10T20:36:53.021800Z

I have a problem with nrepl in gnu guix: cider info+stacktrace ops brings this error:

Caused by: java.lang.ClassNotFoundException: jdk.javadoc.doclet.Doclet
	at java.base/java.net.URLClassLoader.findClass(Unknown Source)

flowthing 2021-06-11T09:24:42.022500Z

I think you need JDK 9 or newer for jdk.javadoc.doclet.Doclet. What does java -version say?

awb99 2021-06-11T18:17:58.022700Z

java -version openjdk version "14" 2020-03-17 OpenJDK Runtime Environment (build 14+0-adhoc..jdk14-bc54620a3848) OpenJDK 64-Bit Server VM (build 14+0-adhoc..jdk14-bc54620a3848, mixed mode, sharing)

awb99 2021-06-11T18:27:02.022900Z

@flowthing do you know if there is a way to see if the doclet cjar is available? I think it is a classpath issue, but it might just be that the jar is missing.

flowthing 2021-06-11T18:46:36.023100Z

It's supposed to be part of the base JDK distribution, so I have no idea why it's not included.

awb99 2021-06-11T19:42:18.023300Z

can I include it and do a ick test with a small project?

awb99 2021-06-11T20:49:03.023700Z

many thanks @flowthing

flowthing 2021-06-12T04:49:32.025Z

Sorry, had to go to sleep. It seems to me that the ClassNotFoundException is telling you that it's not there. But you can test it e.g. with the Clojure CLI tools like this:

clj -Srepro -e "(import '(jdk.javadoc.doclet Doclet))"

awb99 2021-06-16T16:23:12.025400Z

hat worked!thank you so much @flowthing

awb99 2021-06-10T20:47:27.022200Z

I belive some kind of java lib is missing ?