Skip to content
Prev 31770 / 398506 Next

R crashes with package SJava; was [R] Memory leakage?

Uuups , i  show only the calc gui
pops-up, but you right, when i want
push buttons, get every time same
errors as you........

Warning message:
`restart' is deprecated.
Use `try' instead.
See ?Deprecated.

regards,christian


----- Original Message -----
From: "Hotz, T." <th50 at leicester.ac.uk>
To: "Christian Schulz" <ozric at web.de>; "Hotz, T." <th50 at leicester.ac.uk>;
<r-help at stat.math.ethz.ch>
Sent: Thursday, May 08, 2003 3:59 PM
Subject: RE: R crashes with package SJava; was [R] Memory leakage?


As is visible from the output, I set JAVA_HOME properly
in my .Renviron file. Otherwise I couldn't even call .Java().
However, I use R 1.6.2, maybe that's the problem (although the
SJava version I use was built for R 1.6.2). Example calc()
doesn't cause R to crash, but gives me the following warning
when called twice:

Warning message:
`restart' is deprecated.
Use `try' instead.
See ?Deprecated.

Moreover, I don't really understand the example: where am I
supposed to get the result of the calculation? I don't see it
in the Java Dialog, and can't spot it in the return value
either.

Regards

Thomas

-----Original Message-----
From: Christian Schulz [mailto:ozric at web.de]
Sent: 08 May 2003 14:46
To: Hotz, T.; r-help at stat.math.ethz.ch
Subject: Re: R crashes with package SJava; was [R] Memory leakage?


Hmm,

this steps run without problems on my locale win2k.
Perhaps you make the same mistake like me in the past
and have no file named .Renviron  with entry

JAVA_HOME = c:/YourPath/j2re1.4.1_02

and saved in \rw1070 ?
using JAVA_HOME = c:/Programme/Java/j2re1.4.1_02
[[1]]
$id
[1] "1"

$value
$value$actionPerformed
function(ev) {
   txt <- ev$getActionCommand()
   back <- 0
   if(txt == "=") {
     txt <- input$getText()
     val <- as.character(eval(parse(text=txt)))
     input$setText(val)
     jcombo$getModel()$insertElementAt(txt, as.integer(0))
     return(NULL)
   } else if(!is.na(match(txt, unaryOps))) {
     if(txt == "()")
       txt <- ""
     val <- paste(txt, "()",sep="")
     back <- -1
   } else if(txt == "Clear") {
      input$setText("")
      return(NULL)
   } else {
     val <- txt
   }

    doc <- input$getDocument()
    doc$insertString(input$getCaretPosition(), val, NULL)
    if(back < 0) {
      input$setCaretPosition(as.integer(input$getCaretPosition() + back))
    }
 }
<environment: 0194B3CC>


$className
character(0)

$targetClasses
character(0)

attr(,"class")
[1] "AnonymousRReference"

$input
$key
[1] "67"

$className
[1] "javax.swing.plaf.metal.MetalComboBoxEditor$1"

attr(,"class")
[1] "AnonymousOmegahatReference"
----- Original Message -----
From: "Hotz, T." <th50 at leicester.ac.uk>
To: <r-help at stat.math.ethz.ch>
Cc: "Duncan Murdoch" <dmurdoch at pair.com>; <tshi at itsa.ucsf.edu>
Sent: Thursday, May 08, 2003 3:04 PM
Subject: R crashes with package SJava; was [R] Memory leakage?
pressing "Submit"
to task manager)
task
one
Win
:-))
seems