How I can load a R script into JRI and execute from Java Button in Eclipse/NetBeans?

I have a R script which I want to run from a Java Button. I have seen that the eval() function is used in JRI to execute R commands. How can I run the script from a Java Button?