Hope, you are scared by seeing new technologies like Ruby, Rails, .... But as per my expectation, JAVA having good and stable future. The tools/frameworks like hibernate, iBatis, Spring ... soon are designed and developed on JAVA only. But you need to keep on learning the new tools and frameworks, if you are working with JAVA. Even, SUN is implementing new technologies day-by-day.
You can understand, If you observe the blue prints of Sun.