Hi Joop,
Do you know of a java program that gives rise and set times for the moon from a set position? It might be part of one that also gives sunrise and sunset.
I have looked into and found some programs, but all needed minimum Java 7 and we are behind. Other programs which could work with Java 6, but had specific files for operating systems like dll (windows) and so (linux) files, so not pure Java. I did found the new address of NVJ which is now up to version 5.2, its grown huge. But it still works with Java 6, see my homepage. On my system it will take some time to read just the enormous amount of data for stars, galaxies etc. Of course, there is also the Moon, but I think not in the way you want it.
Have fun and best wishes for 2020,
Joop