It's going to take a certain amount of experimentation, as in downloading an engine, likely spending a few months doing tutorials to get your head around how the engine works, and trying to figure out how well it will allow you to do what you want. I don't keep up with all the engines/frameworks, but Java isn't very commonly used.
That's not to say you can't make a game with Java, but it may not be the easiest route. One merit of Java is that it's incredibly similar to C#, which is used in Unity, Godot, and a few other engines.