How to set environment variables in Netbeans 8.0.2?

我的梦境 提交于 2020-01-03 11:28:40

问题


I'm running a test class that came with my JRI (Java-R interface) package. I'm running it through NetBeans. Unfortunately, NetBeans complains about R_HOME not being set.

Creating Rengine (with arguments)
Rengine created, waiting for R
R_HOME is not set. Please set all required environment variables before running this program.
Cannot load R
Unable to start R

How can I add the R_HOME environment variable in NetBeans?


What I have tried:

  1. I defined R_HOME in .bash_profile and .bashrc. /Library/Frameworks/R.framework/Resources
  2. Right-clicking my project name > Properties > Run ... but then I see nowhere to add environment variables. I only see "Arguments" and "VM Options".

I just a couple solutions (in the past half hour).

  1. Add the line export R_HOME=/path/to/r_home/ in netbeans.conf.
  2. Invoke NetBeans from the terminal, where R_HOME is already set.

However, still open to a GUI solution.

来源:https://stackoverflow.com/questions/33484550/how-to-set-environment-variables-in-netbeans-8-0-2

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!