Not that I'm aware of. Trainz requires .NET Framework (for parts of the program), a working OpenGL installation, DirectX, and certain Visual C++ files, but not Java.
One of the painful aspects of Java is there is a newer version out there, however, it isn't fully compatible with older applications. This seems to be a common issue because of how things are hard coded in the application.s. What is interesting is applications based on Java weren't affected by the security vulnerabilities that were mentioned in the news. This was mostly the Java-based web applications that are common, but not so much anymore.
I do recommend also installing the SQL extensions for .NET from here: