Fixed the warnings
made it work, by using jre 1.6