Error when i create javaDoc, cannot read Input length = 1

Answered

Hi guys!
I need your help, when I try to generate JavaDoc to this path (C:\JavaDoc) the console give me this error:

error: cannot read Input length = 1

Information about my version:

Build #IC-223.8836.41, built on March 10, 2023
Runtime version: 17.0.6+1-b653.34 amd64
Java version: Java 8 update 333 (8.0.3330.2)
Operating System: Windows 11 22H2

Thanks!

0
11 comments

What's the full path of your project? Does it have any non-ascii characters?

0

The original path is this
D:\DAM\1º DAM\Módulos\Programación\T6 - Programación Orientada a objetos\Ejercicios\Libro\Libro\src

I need to change the project to other path?

0

Yes, try moving to another path without special characters.

0

Nice!!
That work
Thanks.

0

I am having similar issue, path to my project is "D:\ownCloud\pjv\arimma", to me it seems, that idea is unable to create javadoc_args file in "C:\Temp\javadoc_args".

In idea it doesn't look like link and in file explorer i can't see any file named javadoc_args. Can someone help?

Info about my version

Build #IU-223.8836.41, built on March 10, 2023
Runtime version: 17.0.6+1-b653.34 amd64
Java version: Java 8 update 361
JDK 19.0.2
Operating System: Windows 10 Education 22H2

Thanks

0

Hi Matěj Martínek

Does it work if you change the output directory in the 'Generate Javadoc' settings to something else, e.g. C:\JavaDoc?

If it doesn't, please paste the entire output copied from the console after running 'Generate Javadoc'.

0

When i am using JDK 19 the output is always same, even whe i try to switch to another output dirr, before i was generating it into "D:\javadoc", but if i try to switch to JDK17, it looks to work flawlessly.

 

the output for JDK19 is:

"C:\Program Files\Java\jdk-19\bin\javadoc.exe" -public -splitindex -d C:\javadoc @C:\Temp\javadoc_args
error: cannot read Input length = 1

"javadoc" finished with exit code 1

0

Does it work if you copy the actual command from the output and execute it from the command line outside of IntelliJ IDEA?

See if it helps to add -Dfile.encoding=UTF-8 into Help | Edit Custom VM Options and restart the IDE.

0

When I try to run it in CMD i get this:

C:\Users\Matěj Martínek>"C:\Program Files\Java\jdk-19\bin\javadoc.exe" -public -splitindex -d D:\javadoc @C:\Temp\javadoc_args
error: cannot read C:\Temp\javadoc_args

I also tried adding "-Dfile.encoding=UTF-8 " to Custome VM options, closing IDEA and reopening it, and it still does the same thing

0

It seems to be a java-Windows, but we're currently trying to check the behaviour of different jdk with IDEA on Windows with a similar case to see if there can be some workaround.
Could you please tell if the behaviour is different for you if use jdk 20?

0

To me it seems that, it is doing same thing as JDK19

"C:\Program Files\Java\jdk-20\bin\javadoc.exe" -private -splitindex -d D:\ownCloud\pjv\arimma\Arimma_GUI\javadoc @C:\Temp\javadoc_args
error: cannot read Input length = 1

"javadoc" finished with exit code 1

0

Please sign in to leave a comment.