
Either I need a new way to setting the variable so that it is available to the JVM or I need a new java method to call to access the value.

So, my question is: how can my java application access the value of the R_HOME environment variable. Furthermore, my application won't know the value of R_HOME when it runs the value must already be set so the application can access it at runtime and use the value to start an executable file, as in: ProcessBuilder pb = new ProcessBuilder("$R_HOME/library/Rserve/libs/Rserve")

My application will need to be standalone, so setting environment variables within the Eclipse Run configuration won't be helpful. I have used the following code to list environment variables available to my java application (the list of available values that this code outputs includes neither JAVA_HOME nor R_HOME): Map env = System.getenv() Many hints about upgrading have already been written.
JAVA RUNTIME ENVIRONMENT MAC YOSEMITE UPGRADE
When I run my java application within Eclipse, I can get the JAVA_HOME value by using: ("javahome: " + System.getProperty("") ) Java Runtime Environment Error after OS X Yosemite Upgrade OctoAfter royally procrastinatingthe last OS X upgrade, I figured I'd tackle the OS X Yosemite upgrade a little earlier this time, starting with my least critical machine. Using Terminal on the mac, I can use the 'printenv' command and get values for both variables. When setting R_HOME, I did it by editing: ~/Library/launchagents/ist.

I have set values for two variables: JAVA_HOME and R_HOME. Within java, I am trying to access two environment variables that I previously set on my Mac computer (running Yosemite).
