JErgometer is an open source ergometer software written in Java.

official website