I've built an R/Java interface in eclipse which works on my machine. I need to transfer it to another machine and I want to have it as an executable jar file.
I have exported the package into an executable jar from eclipse and coupled it in a folder with a simple .bat file I created. The .bat file is as follows:
echo off
java -jar myPackage.jar
pause
On my machine this runs without a problem, however, when I transfer the folder over to another machine the native JRI library cannot be found. I think this is more than likely to do with the environment variables? I had set up the environment variables (Path; R_DOC_DR; R_INCLUDE_DR; R_SHARE_DR) in eclipse per class (probably not the best way to go about it).
I've seen online that you can add/edit environmental variables via the My Computer properties, however, I was wondering if there is any way of including them in the .bat file? I want to be able to give this to someone and for them to simply run the .bat file without any messing around.
Thanks in advance for the help,
Aran