[#1864] Update javadoc.py

[#1864] Fix broken command by passing the full path for the command options