Skip to content
Prev 450 / 919 Next

Cannot Run On The Command Line

On Thu, 21 Apr 2016 08:23:32 +0000
Martyn Plummer <plummerm at iarc.fr> wrote:

            
Thanks Martyn!
I hesitated to ignore it in case "Ellen K" (see
<https://en.wikipedia.org/wiki/Ellen_K>) were hilariously mocking my
message be addressed at the wrong place.
So, I just tried to switch back to OpenJDK for the sake of testing, at
no avail.

# alternatives --config java

There are 2 programs which provide 'java'.

  Selection    Command
-----------------------------------------------
*  1           /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.77-1.b03.fc23.x86_64/jre/bin/java
 + 2           /usr/java/jdk1.8.0_92/jre/bin/java

Enter to keep the current selection[+], or type selection number: 1


# alternatives --config javac 

There are 2 programs which provide 'javac'.

  Selection    Command
-----------------------------------------------
 + 1           /usr/java/jdk1.8.0_92/bin/javac
*  2           /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.77-1.b03.fc23.x86_64/bin/javac

Enter to keep the current selection[+], or type selection number: 2


# java -version
openjdk version "1.8.0_77"
OpenJDK Runtime Environment (build 1.8.0_77-b03)
OpenJDK 64-Bit Server VM (build 25.77-b03, mixed mode)

# printf "%s\n" "$JAVA" "$JAVA_HOME" "$JAVAC" "$JAVAH" "$JAR"
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.77-1.b03.fc23.x86_64/bin/java
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.77-1.b03.fc23.x86_64
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.77-1.b03.fc23.x86_64/bin/javac
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.77-1.b03.fc23.x86_64/bin/javah
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.77-1.b03.fc23.x86_64/bin/jar

# R CMD javareconf
...
JAVA_HOME        : /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.77-1.b03.fc23.x86_64
Java library path: $(JAVA_HOME)/jre/lib/amd64/server
JNI cpp flags    : -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
JNI linker flags : -L$(JAVA_HOME)/jre/lib/amd64/server -ljvm
Updating Java configuration in /usr/lib64/R
Done.

# R --quiet
$ java -version
openjdk version "1.8.0_77"
OpenJDK Runtime Environment (build 1.8.0_77-b03)
OpenJDK 64-Bit Server VM (build 25.77-b03, mixed mode)

$ R --quiet
/usr/bin/R: line 238: /usr/lib64/R/etc/ldpaths: Permission denied

The JDK is not the culprit here, and I'm at lost right now since I
can't see where else to try nailing down the error. What kinf of logs
should I provide to make the issue reproducible?