Create Distance matrix in Java based on input from OpenStreetMap

Hi,

I would like to create a distance matrix based on a list of different addresses in OpenStreetMap.

I have a list of different addresses that i would like to put into OpenStreetMap, that then calculate the distance and inserts this into Java.
In Java i will then create a distance matrix.

Can anyone help me?

I have looked into OSRM, but does not think it works with Java because it is based on C++.

Best regards
Andreas

Graphhopper is a Java library for route calculation.