I just ran into two nice packages rJava and JRI that allow running R code from Java and Java code from R. The packages are developed by Department of Computer Oriented Statistics and Data Analysis at Universität Augsburg. It just makes my life much easier. If you need scientific computing from Java it is a really nice option to try :D.