Problems installing JGR (Java GUI for R)
Here I'm going to explain how I could install the JGR package.
The first time the console gave me an error because it couldn't install the dependencies of JGR (iPlots, JavaGD, rJava). The problem was in the missed packages in ubuntu (not in R).
I had to install the (sudo apt-get install [package name] )
default-jre
default-jdk
packages, and after run in the Linux bash R CMD javareconf, the output should be similar to
Java interpreter : /usr/bin/java
Java version : 1.6.0_20
Java home path : /usr/lib/jvm/java-6-openjdk/jre
Java compiler : /usr/bin/javac
Java headers gen.: /usr/bin/javah
Java archive tool: /usr/bin/jar
Java library path: $(JAVA_HOME)/lib/amd64/server:$(JAVA_HOME)/lib/amd64:$(JAVA_HOME)/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib
JNI linker flags : -L$(JAVA_HOME)/lib/amd64/server -L$(JAVA_HOME)/lib/amd64 -L$(JAVA_HOME)/../lib/amd64 -L/usr/java/packages/lib/amd64 -L/usr/lib/jni -L/lib -L/usr/lib -ljvm
JNI cpp flags : -I$(JAVA_HOME)/../include
Updating Java configuration in /etc/R
/usr/lib64/R/bin/javareconf: 331: cannot create /etc/R/Makeconf.new: Permission denied
*** cannot create /etc/R/Makeconf.new
*** Please run as root if required.
After I installed JGR without problems.
Here I'm going to explain how I could install the JGR package.
The first time the console gave me an error because it couldn't install the dependencies of JGR (iPlots, JavaGD, rJava). The problem was in the missed packages in ubuntu (not in R).
I had to install the (sudo apt-get install [package name]
default-jre
default-jdk
packages, and after run in the Linux bash R CMD javareconf, the output should be similar to
Java interpreter : /usr/bin/java
Java version : 1.6.0_20
Java home path : /usr/lib/jvm/java-6-openjdk/jre
Java compiler : /usr/bin/javac
Java headers gen.: /usr/bin/javah
Java archive tool: /usr/bin/jar
Java library path: $(JAVA_HOME)/lib/amd64/server:$(JAVA_HOME)/lib/amd64:$(JAVA_HOME)/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib
JNI linker flags : -L$(JAVA_HOME)/lib/amd64/server -L$(JAVA_HOME)/lib/amd64 -L$(JAVA_HOME)/../lib/amd64 -L/usr/java/packages/lib/amd64 -L/usr/lib/jni -L/lib -L/usr/lib -ljvm
JNI cpp flags : -I$(JAVA_HOME)/../include
Updating Java configuration in /etc/R
/usr/lib64/R/bin/javareconf: 331: cannot create /etc/R/Makeconf.new: Permission denied
*** cannot create /etc/R/Makeconf.new
*** Please run as root if required.
After I installed JGR without problems.