The pair of programs, getaux and replabels, allows using the LaTeX commands \ref, \pageref and \verb from within Java comments to refer to external documentation written in LaTeX.
Use getaux to extract LaTeX labels from .aux files. To replace \ref and \pageref references, use replabels. The Haskell source for these two programs appears above, along with compiled Windows executables.
There is a short tutorial explaining how the programs work, and how to use them.