GNU bug report logs - #53934
OpenJDK doesn't have a doclet

Previous Next

Package: guix;

Reported by: Igor Gajsin <igor <at> gajsin.name>

Date: Thu, 10 Feb 2022 23:38:01 UTC

Severity: normal

Done: Michael Rohleder <mike <at> rohleder.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 53934 in the body.
You can then email your comments to 53934 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#53934; Package guix. (Thu, 10 Feb 2022 23:38:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Igor Gajsin <igor <at> gajsin.name>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 10 Feb 2022 23:38:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Igor Gajsin <igor <at> gajsin.name>
To: bug-guix <at> gnu.org
Subject: OpenJDK doesn't have a doclet
Date: Fri, 11 Feb 2022 00:26:47 +0100
There is a problem with openjdk (all versions 10 to 17). When I run
cider (emacs mode for clojure) it complains about:
java.lang.ClassNotFoundException: jdk.javadoc.doclet.Doclet

when I try to set icedtea there is no such problem. If I understand well
doclet is a part of JDK so it shoulb be part of a modern openjdk
installation.

way to reproduce:

1. Install openjdk and emacs  via `guix package -i openjdk emacs`
2. In emacs apply code  `(use-package cider :ensure t)`
3. on a any clojure project run the command `cider-jack-in`
4. receive the erorr in the repl
5. Install icedtea `guix package -i icedtea`
6. repeat the command and see no errors

-- 
With best regards,
Igor Gajsin




Information forwarded to bug-guix <at> gnu.org:
bug#53934; Package guix. (Sun, 13 Feb 2022 23:23:02 GMT) Full text and rfc822 format available.

Message #8 received at 53934 <at> debbugs.gnu.org (full text, mbox):

From: Michael Rohleder <mike <at> rohleder.de>
To: Igor Gajsin <igor <at> gajsin.name>
Cc: 53934 <at> debbugs.gnu.org
Subject: Re: bug#53934: OpenJDK doesn't have a doclet
Date: Mon, 14 Feb 2022 00:21:48 +0100
[Message part 1 (text/plain, inline)]
Igor Gajsin <igor <at> gajsin.name> writes:
> There is a problem with openjdk (all versions 10 to 17). When I run
> cider (emacs mode for clojure) it complains about:
> java.lang.ClassNotFoundException: jdk.javadoc.doclet.Doclet
>
> when I try to set icedtea there is no such problem. If I understand well
> doclet is a part of JDK so it shoulb be part of a modern openjdk
> installation.

I haven't tried, but maybe adding a file "module-info.java" with the
content "requires jdk.javadoc" to your project might help. [1]

[1]
https://stackoverflow.com/questions/65683365/why-cant-i-import-the-jdk-javadoc-doclet-package

-- 
The difference between a career and a job is about 20 hours a week.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#53934; Package guix. (Mon, 14 Feb 2022 21:29:01 GMT) Full text and rfc822 format available.

Message #11 received at 53934 <at> debbugs.gnu.org (full text, mbox):

From: Igor Gajsin <igor <at> gajsin.name>
To: Michael Rohleder <mike <at> rohleder.de>
Cc: 53934 <at> debbugs.gnu.org
Subject: Re: bug#53934: OpenJDK doesn't have a doclet
Date: Mon, 14 Feb 2022 22:26:27 +0100
I narrowed down where the problem arise and found the exact bugreport:
https://github.com/clojure-emacs/orchard/issues/117#issuecomment-859987280

Unfortunately, I didn't get the solution 'one has to use ONLY the
package "openjdk:jdk"'. What does it mean?

Also, why openjdk removes javadoc, is it a bug or a correct behaviour?

Michael Rohleder <mike <at> rohleder.de> writes:

> [[PGP Signed Part:Undecided]]
> Igor Gajsin <igor <at> gajsin.name> writes:
>> There is a problem with openjdk (all versions 10 to 17). When I run
>> cider (emacs mode for clojure) it complains about:
>> java.lang.ClassNotFoundException: jdk.javadoc.doclet.Doclet
>>
>> when I try to set icedtea there is no such problem. If I understand well
>> doclet is a part of JDK so it shoulb be part of a modern openjdk
>> installation.
>
> I haven't tried, but maybe adding a file "module-info.java" with the
> content "requires jdk.javadoc" to your project might help. [1]
>
> [1]
> https://stackoverflow.com/questions/65683365/why-cant-i-import-the-jdk-javadoc-doclet-package


-- 
With best regards,
Igor Gajsin




Information forwarded to bug-guix <at> gnu.org:
bug#53934; Package guix. (Mon, 14 Feb 2022 21:36:02 GMT) Full text and rfc822 format available.

Message #14 received at 53934 <at> debbugs.gnu.org (full text, mbox):

From: Julien Lepiller <julien <at> lepiller.eu>
To: Igor Gajsin <igor <at> gajsin.name>
Cc: Michael Rohleder <mike <at> rohleder.de>, 53934 <at> debbugs.gnu.org
Subject: Re: bug#53934: OpenJDK doesn't have a doclet
Date: Mon, 14 Feb 2022 22:35:08 +0100
Openjdk has two outputs: out and jdk. The default output contains only
what's necessary to *run* a Java application, while the jdk output
contains that *in addition* to what's needed to build Java applications
(javac, ...). I'm not knowledgeable enough to know if javadoc or doclet
need to be in the default output or not. Aren't they used only when
developping or building Java code?

Le Mon, 14 Feb 2022 22:26:27 +0100,
Igor Gajsin <igor <at> gajsin.name> a écrit :

> I narrowed down where the problem arise and found the exact bugreport:
> https://github.com/clojure-emacs/orchard/issues/117#issuecomment-859987280
> 
> Unfortunately, I didn't get the solution 'one has to use ONLY the
> package "openjdk:jdk"'. What does it mean?
> 
> Also, why openjdk removes javadoc, is it a bug or a correct behaviour?
> 
> Michael Rohleder <mike <at> rohleder.de> writes:
> 
> > [[PGP Signed Part:Undecided]]
> > Igor Gajsin <igor <at> gajsin.name> writes:  
> >> There is a problem with openjdk (all versions 10 to 17). When I run
> >> cider (emacs mode for clojure) it complains about:
> >> java.lang.ClassNotFoundException: jdk.javadoc.doclet.Doclet
> >>
> >> when I try to set icedtea there is no such problem. If I
> >> understand well doclet is a part of JDK so it shoulb be part of a
> >> modern openjdk installation.  
> >
> > I haven't tried, but maybe adding a file "module-info.java" with the
> > content "requires jdk.javadoc" to your project might help. [1]
> >
> > [1]
> > https://stackoverflow.com/questions/65683365/why-cant-i-import-the-jdk-javadoc-doclet-package
> >  
> 
> 





Information forwarded to bug-guix <at> gnu.org:
bug#53934; Package guix. (Mon, 14 Feb 2022 22:51:01 GMT) Full text and rfc822 format available.

Message #17 received at 53934 <at> debbugs.gnu.org (full text, mbox):

From: Igor Gajsin <igor <at> gajsin.name>
To: Julien Lepiller <julien <at> lepiller.eu>
Cc: Michael Rohleder <mike <at> rohleder.de>, 53934 <at> debbugs.gnu.org
Subject: Re: bug#53934: OpenJDK doesn't have a doclet
Date: Mon, 14 Feb 2022 23:49:07 +0100
> Aren't they used only when developping or building Java code?

I'm pretty new in java, so can't answer. My case, I need it for cider
(ide like slime, but for clojure), so that's a "developing" case. But
maybe there is a use-case for running too, I don't know.

Julien Lepiller <julien <at> lepiller.eu> writes:

> Openjdk has two outputs: out and jdk. The default output contains only
> what's necessary to *run* a Java application, while the jdk output
> contains that *in addition* to what's needed to build Java applications
> (javac, ...). I'm not knowledgeable enough to know if javadoc or doclet
> need to be in the default output or not. Aren't they used only when
> developping or building Java code?
>
> Le Mon, 14 Feb 2022 22:26:27 +0100,
> Igor Gajsin <igor <at> gajsin.name> a écrit :
>
>> I narrowed down where the problem arise and found the exact bugreport:
>> https://github.com/clojure-emacs/orchard/issues/117#issuecomment-859987280
>> 
>> Unfortunately, I didn't get the solution 'one has to use ONLY the
>> package "openjdk:jdk"'. What does it mean?
>> 
>> Also, why openjdk removes javadoc, is it a bug or a correct behaviour?
>> 
>> Michael Rohleder <mike <at> rohleder.de> writes:
>> 
>> > [[PGP Signed Part:Undecided]]
>> > Igor Gajsin <igor <at> gajsin.name> writes:  
>> >> There is a problem with openjdk (all versions 10 to 17). When I run
>> >> cider (emacs mode for clojure) it complains about:
>> >> java.lang.ClassNotFoundException: jdk.javadoc.doclet.Doclet
>> >>
>> >> when I try to set icedtea there is no such problem. If I
>> >> understand well doclet is a part of JDK so it shoulb be part of a
>> >> modern openjdk installation.  
>> >
>> > I haven't tried, but maybe adding a file "module-info.java" with the
>> > content "requires jdk.javadoc" to your project might help. [1]
>> >
>> > [1]
>> > https://stackoverflow.com/questions/65683365/why-cant-i-import-the-jdk-javadoc-doclet-package
>> >  
>> 
>> 


-- 
With best regards,
Igor Gajsin




Information forwarded to bug-guix <at> gnu.org:
bug#53934; Package guix. (Tue, 15 Feb 2022 22:48:02 GMT) Full text and rfc822 format available.

Message #20 received at 53934 <at> debbugs.gnu.org (full text, mbox):

From: Igor Gajsin <igor <at> gajsin.name>
To: Julien Lepiller <julien <at> lepiller.eu>
Cc: Michael Rohleder <mike <at> rohleder.de>, 53934 <at> debbugs.gnu.org
Subject: Re: bug#53934: OpenJDK doesn't have a doclet
Date: Tue, 15 Feb 2022 23:45:49 +0100
Thanks a lot, I've installed the jdk output and the issue has gone. The
ticket could be closed.
Julien Lepiller <julien <at> lepiller.eu> writes:

> Openjdk has two outputs: out and jdk. The default output contains only
> what's necessary to *run* a Java application, while the jdk output
> contains that *in addition* to what's needed to build Java applications
> (javac, ...). I'm not knowledgeable enough to know if javadoc or doclet
> need to be in the default output or not. Aren't they used only when
> developping or building Java code?
>
> Le Mon, 14 Feb 2022 22:26:27 +0100,
> Igor Gajsin <igor <at> gajsin.name> a écrit :
>
>> I narrowed down where the problem arise and found the exact bugreport:
>> https://github.com/clojure-emacs/orchard/issues/117#issuecomment-859987280
>> 
>> Unfortunately, I didn't get the solution 'one has to use ONLY the
>> package "openjdk:jdk"'. What does it mean?
>> 
>> Also, why openjdk removes javadoc, is it a bug or a correct behaviour?
>> 
>> Michael Rohleder <mike <at> rohleder.de> writes:
>> 
>> > [[PGP Signed Part:Undecided]]
>> > Igor Gajsin <igor <at> gajsin.name> writes:  
>> >> There is a problem with openjdk (all versions 10 to 17). When I run
>> >> cider (emacs mode for clojure) it complains about:
>> >> java.lang.ClassNotFoundException: jdk.javadoc.doclet.Doclet
>> >>
>> >> when I try to set icedtea there is no such problem. If I
>> >> understand well doclet is a part of JDK so it shoulb be part of a
>> >> modern openjdk installation.  
>> >
>> > I haven't tried, but maybe adding a file "module-info.java" with the
>> > content "requires jdk.javadoc" to your project might help. [1]
>> >
>> > [1]
>> > https://stackoverflow.com/questions/65683365/why-cant-i-import-the-jdk-javadoc-doclet-package
>> >  
>> 
>> 


-- 
With best regards,
Igor Gajsin




bug closed, send any further explanations to 53934 <at> debbugs.gnu.org and Igor Gajsin <igor <at> gajsin.name> Request was from Michael Rohleder <mike <at> rohleder.de> to control <at> debbugs.gnu.org. (Wed, 16 Feb 2022 03:05:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 16 Mar 2022 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 91 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.