在 Mac OS 中启动 R statet
我的操作系统是 Mac OS Lion
当我在 eclipse 中启动 R(成功安装 statet 后,在 R 和 bash 中安装包“rjava、rj 和 rj-gd”)时,我仍然收到图片中的错误消息。
在 ecipse.ini 中我指定了一个 vm iee
-vm
/usr/bin/java
错误日志具有以下几行。任何帮助将不胜感激
Launching the R Console was cancelled, because it seems starting the R engine failed.
Please make sure that R package 'rj' (0.5.5 or compatible) is installed and that the R library paths are set correctly for the R environment configuration 'R'.
Process Error Log:
Nov 17, 2011 4:26:41 PM de.walware.rj.server.RMIServerControl start
INFO: [Control:rjs-local-1321543599373] initialize server...
Nov 17, 2011 4:26:41 PM de.walware.rj.server.srvImpl.AbstractServerControl initREngine
SEVERE: [Control:rjs-local-1321543599373] init JRI/Rengine failed.
java.lang.NoClassDefFoundError: de/walware/rj/server/dbg/TracepointListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at de.walware.rj.server.jri.loader.JRIClassLoader.findClass(JRIClassLoader.java:514)
at de.walware.rj.server.jri.loader.JRIClassLoader.loadRJavaClass(JRIClassLoader.java:746)
at de.walware.rj.server.jri.loader.JRIServerLoader.loadServer(JRIServerLoader.java:82)
at de.walware.rj.server.srvImpl.AbstractServerControl.initREngine(AbstractServerControl.java:145)
at de.walware.rj.server.RMIServerControl.start(RMIServerControl.java:104)
at de.walware.rj.server.RMIServerControl.main(RMIServerControl.java:41)
Caused by: java.lang.ClassNotFoundException: de.walware.rj.server.dbg.TracepointListener
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at de.walware.rj.server.jri.loader.JRIClassLoader.findClass(JRIClassLoader.java:514)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 15 more
My Operating System is Mac OS Lion
When i start R in eclipse (after successfully installing statet, and in R and bash the packages "rjava, rj and rj-gd") i still get the error message in the picture.
in ecipse.ini i have specifed a vm i.e.e
-vm
/usr/bin/java
The the error log has the following lines. Any help will be appreciated
Launching the R Console was cancelled, because it seems starting the R engine failed.
Please make sure that R package 'rj' (0.5.5 or compatible) is installed and that the R library paths are set correctly for the R environment configuration 'R'.
Process Error Log:
Nov 17, 2011 4:26:41 PM de.walware.rj.server.RMIServerControl start
INFO: [Control:rjs-local-1321543599373] initialize server...
Nov 17, 2011 4:26:41 PM de.walware.rj.server.srvImpl.AbstractServerControl initREngine
SEVERE: [Control:rjs-local-1321543599373] init JRI/Rengine failed.
java.lang.NoClassDefFoundError: de/walware/rj/server/dbg/TracepointListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at de.walware.rj.server.jri.loader.JRIClassLoader.findClass(JRIClassLoader.java:514)
at de.walware.rj.server.jri.loader.JRIClassLoader.loadRJavaClass(JRIClassLoader.java:746)
at de.walware.rj.server.jri.loader.JRIServerLoader.loadServer(JRIServerLoader.java:82)
at de.walware.rj.server.srvImpl.AbstractServerControl.initREngine(AbstractServerControl.java:145)
at de.walware.rj.server.RMIServerControl.start(RMIServerControl.java:104)
at de.walware.rj.server.RMIServerControl.main(RMIServerControl.java:41)
Caused by: java.lang.ClassNotFoundException: de.walware.rj.server.dbg.TracepointListener
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at de.walware.rj.server.jri.loader.JRIClassLoader.findClass(JRIClassLoader.java:514)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 15 more
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于这个问题有一个非常简单的解决方案。我是在更新StatET插件后遇到的。
StatET IDE 发生了很大变化,它需要新版本的 RJ 库(请参阅R 包的安装部分RJ)。
要安装 RJ 1.0 (StatET 2.0.x),请键入以下命令:
R 控制台将再次工作。
希望有帮助。
There is a very simple solution for the issue. I encountered it after updating the StatET plugin.
The StatET IDE changed a lot, and it requires a new version of the RJ library (see section Installation of the R Packages of RJ).
In order to install RJ 1.0 (StatET 2.0.x), type the following command:
And the R console is going to work again.
Hope that helps.
在 OS X 安全更新后我遇到了完全相同的问题,我尝试了一下并想向您展示我的“解决方案”。我正在重新安装所有内容,也许这不是必需的,但它有效。
我重新安装,因为我认为这是 Java 1.6.0_29 问题,并且在 OS XI 上现在不知道如何降级 java 安装。请参阅此处
删除旧的 R并安装最新版本2.14(R版本2.14不存在rj 0.5)
我还重新安装了Eclipse并将其更新到版本3.7.1
添加插件(帮助 -> 安装新软件 -> 来自 StatET for Eclipse 3.7 的 URL)
现在运行配置中的一些 Eclipse 配置:
最重要的配置(对我来说也是如此)可能是 R 库的路径。如果您没有以管理员身份登录(或具有管理员权限),jr 库将写入您的主目录:~/Library/R/2.14/library。您必须在 R 配置中添加此目录(Eclipse -> Preferences -> StatET -> Run/Debug -> R Environment -> Edit)
图像为 此处(作为未注册用户,我不允许集成图像)
这对我有用,到目前为止一切似乎都很好。
关于我的配置:
I had exactly the same problem after an security update of OS X, I tried around and want to show you my "solution". I was reinstalling everything, perhaps this is not needed, but it works.
I reinstalled, cause I thought it is a Java 1.6.0_29 problem, and on OS X I don't now how to downgrade the java installation. See here
Remove old R and install the newest Version 2.14 (rj 0.5 does not exist for R version 2.14)
I also reinstalled Eclipse and updated it to Version 3.7.1
Add plugins (Help -> Install new Software -> URL from StatET for Eclipse 3.7)
And now some Eclipse configuration in the Run Configuration:
The probably most important configuration (so it was for me) is the path of the R library. If you are not logged in as admin (or have admin rights) the jr library gets written into you home directory: ~/Library/R/2.14/library. You have to add this directory in your R configuration (Eclipse -> Preferences -> StatET -> Run/Debug -> R Environment -> Edit)
Image is here (as unregistered User I am not allowed to integrate images)
This worked for me and everything seems to be fine until now.
About my configuration: