本文介绍了StatEt Eclipse插件/RJ的ClassNotFoundException. Java9的兼容性问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过以下方式为StatEt安装了RJ:

I installed RJ for StatEt with:

> install.packages(c("rj", "rj.gd"), repos="http://download.walware.de/rj-2.1")
Installiere Pakete nach 'C:/Users/eis/Documents/R/win-library/3.4'
(da 'lib' nicht spezifiziert)
versuche URL 'http://download.walware.de/rj-2.1/bin/windows/contrib/3.4/rj_2.1.0-13.zip'
Content type 'application/zip' length 342681 bytes (334 KB)
downloaded 334 KB

versuche URL 'http://download.walware.de/rj-2.1/bin/windows/contrib/3.4/rj.gd_2.1.0-2.zip'
Content type 'application/zip' length 97222 bytes (94 KB)
downloaded 94 KB

Paket 'rj' erfolgreich ausgepackt und MD5 Summen abgeglichen
Paket 'rj.gd' erfolgreich ausgepackt und MD5 Summen abgeglichen

Die heruntergeladenen Binärpakete sind in
    C:\Users\eis\AppData\Local\Temp\Rtmp0G5hW5\downloaded_packages

之后,我对rj的包装描述为:

After that my package description of rj is:

> packageDescription("rj")
Encoding: UTF-8
Package: rj
Version: 2.1.0-13
Title: RJ - R Package for high-level Java-R library RJ
Author: Stephan Wahlbrink, Tobias Verbeke, low-level R binding based on
        the JRI library by Simon Urbanek
Maintainer: Stephan Wahlbrink <[email protected]>
Depends: R (>= 2.11.0)
Suggests: rj.gd
SystemRequirements: java
Description: Server implementation and R functions for the high-level
        Java-R library RJ.  The package also includes callback
        functions for StatET.  It is shipped with an adapted version of
        the JRI library.  The package can be used only when R was
        loaded via RJ.
License: LGPL (== 2.1)
URL: http://www.walware.de/goto/opensource
NeedsCompilation: yes
Packaged: 2017-05-10 08:22:44 UTC; build
Built: R 3.4.0; x86_64-w64-mingw32; 2017-05-10 08:25:27 UTC; windows

-- File: C:/Users/eis/Documents/R/win-library/3.4/rj/Meta/package.rds

然后我添加了文件夹

C:/Users/eis/Documents/R/win-library/3.4

C:/Users/eis/Documents/R/win-library/3.4

在StatEt Eclipse首选项中进入R_LIBS:

to R_LIBS in the StatEt Eclipse preferences:

当我尝试使用RJ启动控制台运行配置时,我收到以下错误消息:

When I try to start my console run configuration using RJ I get following error:

Fehler: Hauptklasse de.walware.rj.server.RMIServerControl konnte nicht gefunden oder geladen werden
Ursache: java.lang.ClassNotFoundException: de.walware.rj.server.RMIServerControl

我使用

  • Windows 7
  • Java JDK 9.01,
  • 用于JavaScript和Web开发人员的Eclipse,版本:Oxygen.2发行版(4.7.2)
  • StatET 3.6.1
  • R版本3.4.3

  • Windows 7
  • Java JDK 9.01,
  • Eclipse for JavaScript and Web Developers, Version: Oxygen.2 Release (4.7.2)
  • StatET 3.6.1
  • R version 3.4.3

=> RJ for StatEt是否与Java9兼容?

=> Is RJ for StatEt compatible to Java9?

=>如果是,如何正确安装RJ for StatEt?

=> If so, how can I correctly install RJ for StatEt?

=>如何/在Windows上何处运行R CMD javareconf?我在r的bin文件夹中尝试过,但是参数javareconf未知.

=> How/where do I run R CMD javareconf on windows? I tried in bin folder of r but the argument javareconf is not known.

相关问题和文章:

  • How does one install 'rj' in StatET plugin for Eclipse?
  • How to use "R Graph Builder" and "R Graphics" view with StatEt Eclipse Plugin?
  • http://www.walware.de/it/rj/installation.mframe?jump=rpkg-installation

推荐答案

RJ 2.1与Java 9.0.1不兼容.如果已安装,则可以指向不同版本的JAVA.请安装Java 8并在运行配置中选择JRE 8,例如:

RJ 2.1 is not compatible to Java 9.0.1. You can point to different versions of JAVA if you have them installed. Please install Java 8 and select JRE 8 in your run configuration, for example:

我对R环境配置的更改不多

I don't change much my R environment configuration

这篇关于StatEt Eclipse插件/RJ的ClassNotFoundException. Java9的兼容性问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-16 14:45