[Fedora-r-devel-list] problems while building R-rJava

José Matos jamatos at fc.up.pt
Fri May 11 19:43:12 UTC 2012


Hello,
    while chasing the several dependencies to build R-Sim-DiffProc I had
to build R-rJava, at moment that is failing while testing the examples.
Are there any suggestions to overcome this?

* checking examples ... ERROR
Running examples in 'rJava-Ex.R' failed
The error most likely occurred in:


> ### Name: J
> ### Title: High level API for accessing Java
> ### Aliases: J
> ### Keywords: interface
>
> ### ** Examples
>
> ## Don't show:
> .jinit()
[1] 0

> ## End Don't show
>
> if (!nzchar(Sys.getenv("NOAWT"))) {
+   f <- new(J("java.awt.Frame"), "Hello")
+   f$setVisible(TRUE)
+ }
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "newInstance",
.jfindClass(class),  :
  java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation
which requires it.
Calls: new -> new -> .J -> .jcall -> .jcheck -> .Call
Execution halted
error: Bad exit status from /tmp/rpmbuild/rpm-tmp.DdN0bT (%check)


Regards,

-- 
José Matos



More information about the r-devel mailing list