Kevin,
You should just be able to double click on the jgr executable now to open jgr. Regarding Java, the launcher has a problem when there is a missmatch between 32/64 bit java and 32/64 bit R, so I recommend having both installed.
Manuel,
I'll contact you off list when I get a new launcher ready for testing. In the mean time to help you, and to help me in debugging, can you try the following.
1. make sure you have java installed.
2. open R in c:\Program Files\R\R-3.0.1\bin\i386\Rgui.exe and run:
install.packages(c("rJava","iplots","JGR","Deducer","JavaGD"))
.libPaths()
library(JGR)
launchJGR <- function(){
windows <- .Platform$OS.type == "windows"
ws <- function(s){
if(windows) gsub("/","\\\\",s) else s
}
ps <- if(windows) ";" else ":"
qs <- function(s){
paste0("\"" , s , "\"")
}
rhome <- ws(R.home())
libs <- ws(paste(.libPaths(),collapse=ps))
libUser <- ws(Sys.getenv("R_LIBS_USER"))
arch <- sessionInfo()$R.version$arch
rJavaPath <- ws(path.package("rJava"))
jriJarPath <- ws(paste0(path.package("rJava") , "/jri/JRI.jar"))
jgrJarPath <- ws(paste0(path.package("JGR") , "/java/JGR.jar"))
iplotsJarPath <- ws(paste0(path.package("iplots") , "/java/iplots.jar"))
boot <- ws(paste0(rJavaPath,"/java/boot"))
javaHome <- J("java.lang.System")$getProperty("java.home")
java <- ws(paste0(javaHome,"/bin/java.exe"))
path <- J("java.lang.System")$getProperty("java.library.path")
cp <- paste(qs(jriJarPath), qs(iplotsJarPath), qs(jgrJarPath),
qs(paste0(rhome , ws("/etc/classes"))),
qs(paste0(rhome , ws("/etc/classes/classes.jar"))),sep=ps)
Sys.setenv(PATH=path)
Sys.setenv(R_HOME=rhome)
Sys.setenv(R_ARCH=arch)
Sys.setenv(R_LIBS=libs)
Sys.setenv(R_LIBS_USER=libUser)
cmd <- paste0(qs(java), " -Xmx512m ", " -cp ", qs(boot),
" -Drjava.class.path=", cp,
" -Drjava.path=",qs(rJavaPath),
" -Dmain.class=org.rosuda.JGR.JGR "," -Djgr.load.pkgs=yes ",
" -Djgr.loader.ver=1.7", " -Dr.arch=",arch,
" RJavaClassLoader")
system(cmd,wait=FALSE)
cmd
}
launchJGR()
3. If that doesn't work, open R in c:\Program Files\R\R-3.0.1\bin\x64\Rgui.exe and run the same code.
Send me the full output (i.e. copy the whole R session) off list to
i...@fellstat.com.
best,
Ian