I do not mind if it is based on a turn or in real time. It just needs to be popular and allows you to write your strategy using the java language
My first thought was TORCS , but it is not in Java. However, it looks like you can write cars / logic using Java .