How can I implement voice recognition in JAVA mode?

It seems that the library is out of date and cannot be started.

I am curious to see if anyone has solved it, so I post it.