I am trying to get Janusgraph
working on OpenSuse Leap 42.3 but I'm running into a multitude of problems.
My understanding is that JanusGraph
invokes other Java dependencies, including gremlin
& cassandra
. I've tried from my account and from root but I gather from subsequent reading that running janusgraph.sh
from root is either deprecated or impossible.
I think that my Java environment variables are wrong and and running env
reveals a bunch of variables relating to java and I don't know how or where they're generated or declared. I'd like to set these up in way that they're common across ALL accounts, which I think may be possible somehow, using /etc/environment
?
Here's the output from env | grep J
+ other manual extracts (all the following are run from my normal bash account, not root)
JRE_HOME=/usr/lib64/jvm/jre-1.8.0-openjdk/jre/bin/java
JAVA_BINDIR=/usr/lib64/jvm/java/bin
JAVA_HOME=/usr/bin/
JDK_HOME=/usr/lib64/jvm/java
JAVA_ROOT=/usr/lib64/jvm/java
CASSANDRA_HOME=/opt/apache-cassandra-3.11.3/bin/
PATH=/home/me/adb-fastboot/platform-tools:/home/me/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/home/me/bin:/usr/lib64/jvm/jre-1.8.0-openjdk/bin/java:/usr/lib64/jvm/jre-1.8.0-openjdk/jre/bin/java:/usr/bin/
but I think that contradicts:
alternatives --list java
/usr/lib64/jvm/jre-1.8.0-openjdk/bin/java
I've also checked:
java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (IcedTea 3.10.0) (build 1.8.0_191-b12 suse-30.1-x86_64)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
and to bottom out the actual location:
readlink -f /usr/bin/java
/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/jre/bin/java
and
whereis java
java: /usr/bin/java /usr/lib64/java /etc/java /usr/share/java /usr/share/man/man1/java.1.gz