You're criticizing Java for being slow, and then presenting Ruby as an alternative. You do realise that Java is up to 100 times faster than Ruby:
http://shootout.alioth.debian.org/u32/benchmark.php?test=all....
And on multicore systems Java up to 300x faster than Ruby:
http://shootout.alioth.debian.org/u64q/benchmark.php?test=al...
...alternatively combine the performance of Java with a highly expressive language e.g. Scala