yes it is possible to compile Java code instead of have it interpreted, however, it is still slower than crap.
Just look at the Netbeans Java IDE for example. Netbeans, an IDE for developing in Java, was itself developed in Java (a huge mistake by Netbeans), and it runs SLOWER THAN CRAP.
Netbeans IDE takes more time to start up than MSVC++, 3ds Max, Maya, Halo, C++Builder, and many more programs combined. I can start Netbeans, go to the bathroom, come back, and it still wont be finished starting up. Many other Java programs are the same way, even when compiled.