At the end of the day, Java is close enough to being on par performance wise with other languages, that that is really not a consideration, even js has some runtime environments which can offer close to native performance last I knew.
biggest consideration is accessibility, the community around paper knows Java, and so ditching that would generally be akin to shooting oneself in the foot. Not touched C++ in a few years, looks like rust might be slowly nibbling at the edge of that space, to the degree that its showing up in some interesting spaces, but, big caveat to remember is that you’re more so picking the ecosystem rather than just a language these days.