I wrote an ocaml code to latex ocaml listing translator. (i.e. it takes some ocaml code and returns the code in latex format so that it can be used as a code listing)
It is online, and works online, for the moment.
I've forked it to take Java as well (the Java version will be online later). The source code will be released this summer under a free license...