Javadoc argfile encoding error
On a toy Hello World project, when I try to generate the Javadoc, I get a cryptic error message:
javadoc: error - cannot read Input length = 1
After reading about similar exceptions I thought it might be due to some encoding issue, since I'm running IntelliJ on a Windows 10 with a greek locale, and my project path contains greek. When I open the @argfile generated by the IDE in %TEMP% it is only looking correct under windows-1253 (Modern Greek Windows Code Page) encoding. Therefore I suspect that the file is saved with some kind of "default" encoding by the IDE only to later mess up Javadoc. (Note: The project compiles and runs, so I guess that under utf-8 the java tools work okay, even with greek characters in the paths).
Is there a way to configure the IDE so that it saves the argfile as, say, UTF-8, or even omit it altogether?
Please sign in to leave a comment.
You may need to configure IDE/project encodings, see http://blogs.jetbrains.com/idea/2013/03/use-the-utf-8-luke-file-encodings-in-intellij-idea/.
Check the command line used for tool JavaDoc execution, what encoding does it use? Does the same command line work outside of IntelliJ IDEA?
Maybe it would be better to use Maven for JavaDoc generation? https://maven.apache.org/plugins/maven-javadoc-plugin/ .
Today (21-aug-2021) i tried to generate a javadoc, the error message was : javadoc: error - cannot read Input length = 1 , in my case it referred to the length of the location of the file, the file route (or the file url), then i cuttted off the route something that following:
my first file location was (this location was very long):
D:\Tecnologia(ytrabajo)ysistemas26sep2020\misiontic2022\U El Bosque\UEB académico\Ciclo 2\Programación Básica\NetBProjects\R5DTO_DAOMVC_GUI
my second file location was (this route is shorter than the first so NetBeans could read it and so generate the javadoc):
D:\Tecnologia(ytrabajo)ysistemas26sep2020\misiontic2022\NBProjects(m)\R5DTO_DAOMVC_GUI