We've been running an application on windows where we use R and Java and I'm trying to migrate over to a Unix system.
I've searched through the forums and Google and can't find anything that is clear on the environment variable setup. The application uses Java, Tomcat, and R. (On windows we usually install JGR so R can run in java, but it seems on MAC rJava is the way to get this working)
So I've got java version "1.6.0_29", R version 2.14.1, rJava 0.9-3, and tomcat 7.0.20 installed. I need to get the application running on tomcat for testing.
Here is what I think I need to do that I can't find good documentation on:
- Set the JAVA_HOME variable
- Set the CATALINA_HOME variable
- Set the R env. variables (I'm not sure if these should go in .profile, .bash_profile, etc.)
I'm running on Mac OSX 10.7.2
Any help would be appreciated. Thanks.