Is it possible to run a R script from Java (via JRI (part of rJava): http://www.rforge.net/rJava/) without adding it line by line into a JRI java application? Ralf