[R] Sjava question on MacOS 10.3
Sean Davis
sdavis2 at mail.nih.gov
Thu Jan 15 14:27:53 CET 2004
I am running R-1.81, apple's JVM installed with OS 10.3.2, and installed
Sjava-0.65.X (a patched version of Sjava for MacOS from Simon Urbanek, which
I know is inherently dangerous, but...). This version installed fine and
some aspects seem to work as expected. However, this is one of the examples
and causes R to hang. Any insights? What other information should I
provide to make it easier to answer this question? Finally, is there a
stable version of Sjava for the MacOS 10.3 that I should be using? (See
below.)
Thanks,
Sean
--
Sean Davis, M.D., Ph.D.
Clinical Fellow
National Institutes of Health
National Cancer Institute
National Human Genome Research Institute
Clinical Fellow, Johns Hopkins
Department of Pediatric Oncology
--
Here is the R-Session:
R : Copyright 2003, The R Foundation for Statistical Computing
Version 1.8.1 (2003-11-21), ISBN 3-900051-00-3
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for a HTML browser interface to help.
Type 'q()' to quit R.
> options(STERM='iESS', editor='emacsclient')
> library(SJava)
Warning message:
The Java machine is no longer initialized automatically. You must explicitly
load it in: firstlib(which.lib.loc, package)
> .JavaInit()
> JavaConfig()
Error: couldn't find function "JavaConfig"
> javaConfig()
$classPath
[1]
"/Users/sdavis/R-1.81/lib/R/library/SJava/org/omegahat/Jars/Environment.jar"
[2] "/Users/sdavis/R-1.81/lib/R/library/SJava/org/.."
[3] "/Users/sdavis/R-1.81/lib/R/library/SJava/org/omegahat/Jars/antlr.jar"
[4] "/Users/sdavis/R-1.81/lib/R/library/SJava/org/omegahat/Jars/jas.jar"
[5] "/Users/sdavis/R-1.81/lib/R/library/SJava/org/omegahat/Jars/jhall.jar"
$properties
EmbeddedInR
"true"
InterfaceManagerClass
"org/omegahat/Interfaces/NativeInterface/OmegaInterfaceManager"
ForeignReferenceBaseClass
"org/omegahat/R/Java/RForeignReference"
java.compiler
"NONE"
OMEGA_HOME
"/Users/sdavis/R-1.81/lib/R/library/SJava/org/omegahat"
OmegahatSearchPath
".,${OMEGA_HOME}/Environment/Scripts/Run,${OMEGA_HOME}/Jars/Environment.jar"
java.library.path
"/Users/sdavis/R-1.81/lib/R/library/SJava/libs"
$libraryPath
[1] "/Users/sdavis/R-1.81/lib/R/library/SJava/libs"
> .Java("Math","sin","PI")
$key
[1] "1"
$className
[1] "org.omegahat.Environment.Language.StaticMethodAlias"
attr(,"class")
[1] "AnonymousOmegahatReference"
> .Java("Math","sin",3.141592654)
[1] -4.102069e-10
> f <- .JavaConstructor("JFrame")
More information about the R-help
mailing list