WARNING! You are using an unsupported Java runtime

1,377 views
Skip to first unread message

Rodger

unread,
Jun 21, 2013, 2:28:48 PM6/21/13
to ne...@googlegroups.com
Dear Experts,

I've recently created a new server with Redhat 6.4.
uname -a
Linux black.testrac.com 2.6.32-358.11.1.el6.x86_64 #1 SMP Tue Jun 11 10:24:58 PDT 2013 x86_64 x86_64 x86_64 GNU/Linux

cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)

lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: OracleServer
Description: Oracle Linux Server release 6.4
Release: 6.4
Codename: n/a


I unzipped NEO4J 1.9 community.
Dealt with the max open files warning.


cd /neo4j/neo4j-community-1.9/bin/

./neo4j start &

 WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
Starting Neo4j Server...WARNING: not changing user
process [3808]... waiting for server to be ready.....



java -version
java version "1.7.0_19"
OpenJDK Runtime Environment (rhel-2.3.9.1.0.1.el6_4-x86_64)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)


rpm -qa | grep -i "jre"
jre-1.7.0_21-fcs.x86_64

rpm -qa | grep -i "jvm"
- nothing




/usr/sbin/alternatives --config java

There are 3 programs which provide 'java'.

  Selection    Command
-----------------------------------------------
*+ 1           /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
   2           /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
   3           /usr/lib/jvm/jre-1.5.0-gcj/bin/java

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




/usr/sbin/alternatives --config java
    There are 2 programs which provide 'java'.
    Selection    Command
    -----------------------------------------------
       1           /usr/lib/jvm/jre-1.4.2-gcj/bin/java
    *+ 2           /usr/lib/jvm/jre-1.6.0-sun/bin/java
    Enter to keep the current selection[+], or type selection number:



/usr/sbin/alternatives --config javac

There are 2 programs which provide 'javac'.

  Selection    Command
-----------------------------------------------
   1           /usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/javac
*+ 2           /usr/lib/jvm/java-1.7.0-openjdk.x86_64/bin/javac




What is the secret to making this error go away?


If I have java version 7 or 1.7 JDK and JRE packages installed, why am I getting these errors.  


Thanks a lot!

Lasse Westh-Nielsen

unread,
Jun 21, 2013, 3:21:29 PM6/21/13
to ne...@googlegroups.com
Rodger,

What is JAVA_HOME set to? I believe that is where the start script looks to find a JRE/ JDK. 

Regards,

Lasse
--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Rodger

unread,
Jun 21, 2013, 4:48:17 PM6/21/13
to ne...@googlegroups.com
Good one!  That worked to get NEO4J started. 

I remember now from before, on Windows. 

without bin
> JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_15

with bin
> JAVA_PATH=C:\Program Files (x86)\Java\jdk1.7.0_15\bin

without bin
> JRE_HOME=C:\Program Files (x86)\Java\jre7



I set JAVA_HOME and JAVA_PATH in the .bash files and it worked. 

export JAVA_HOME=/usr/java/jre1.7.0_21

export JAVA_PATH=/usr/java/jre1.7.0_21/bin



---


It seems that a pre check script is in order to look for the environment variables, the right java version, etc.


Oracle has had big precheck routines for a while now.
Especially with the big ERP software like Apps R12.

But now, just for the database, there is a whole package for the pre checks:

rpm -qa | grep -i "preins"
oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64



---

Turns out that some of those links in 
/usr/sbin/alternatives 
are completely bogus! What a waste of my time. 


Reply all
Reply to author
Forward
0 new messages