Update javadoc.py

[#57987] Fix broken command by passing the full path for the command options
Merge pull request #796 from gpgekko/patch-2

[#1864] Update javadoc.py