Neo4j Community compatability with JAVA 11


(Errol L P Paclibar) #1

Hi Everyone, I have a problem running neo4j in JAVA 11.. currently Im running neo4j 3.3.5 in JAVA 8 and it's working fine, however upon upgrading to JAVA 11 I can run neo4j in console but wasn't able to login. I read some comments here(https://github.com/neo4j/neo4j-browser/issues/671) saying that the correct java version should be used. Just want to ask if neo4j is supported in JAVA 11.? Thanks in advance guys :slight_smile:


(M. David Allen) #2

Java 11 isn't currently supported at all; I would expect that you would run into problems with it. It's on the roadmap but unfortunately I don't have a date when it would be ready.


(Errol L P Paclibar) #3

Hi David,

Thanks for the reply. How about with enterprise edition? Do you have an idea if how we could use AWS-EC2(https://aws.amazon.com/marketplace/pp/B071P26C9D) for deploying neo4j instead of a physical server.?

Thanks,
Errol


(M. David Allen) #4

Java 11 isn't supported for either enterprise or community.

If you'd like to run Neo4j on AWS, that is well supported - there are several different options. The docs on how to do that, you can find here:


(Michael Hunger) #5

It should be working with Java up to 11, just recently in 3.4.9 the restrictions check in the startup script has been updated to reflect that.


(Errol L P Paclibar) #6

Hi michael,

This is good news. Just when was this released? Is it both with community and enterprise? Just to clarify, we can now run 3.4.9 neo4j in java 11 in windows 10?. how about with linux?

Thanks,
Errol


(Michael Hunger) #7

All the releases are the same. So should be no difference between the operating systems.


(Errol L P Paclibar) #8

That's noted michael. Thank you for the response :)


(Eric) #9

Hi @michael.hunger

I have installed openjdk 11 on my Amazon Linux 2 instance and then neo4j 3.4.9, and I get this error message :

ERROR! Neo4j cannot be started using java version 11.0.1.
Please use Oracle(R) Java(TM) 8, OpenJDK(TM) or IBM J9 to run Neo4j.
Please see https://neo4j.com/docs/ for Neo4j installation instructions.

Could you please confirm it is possible to start neo4j with java > 8 ?

Thanks


(Eric) #10

Hi @michael.hunger

Actually, I have made another installation of OpenJDK 11 and now neo4j is starting fine.
I was using previously an ansible galaxy role which did perform well apparently.

Thanks again.


(Vijayreddy1991) #11

Hi @Michael Hunger

I have installed openjdk 11 on my environment and then neo4j 3.4.9, and I get this error message :

its not starting the service

Service neo4j boot error, restarting...
Service neo4j boot error, restarting...
Service neo4j boot error, restarting...
Service neo4j boot error, restarting...
Service neo4j boot error, restarting...
Service neo4j boot error, restarting...
Service neo4j boot error, restarting...
Service neo4j boot error, restarting...
Service neo4j boot error, restarting...

when i try to ckeck the version its getting error message
/var/lib/neo4j/bin/neo4j version
ERROR! Neo4j cannot be started using java version 11.0.1.

  • Please use Oracle(R) Java(TM) 8, OpenJDK(TM) or IBM J9 to run Neo4j.
  • Please see https://neo4j.com/docs/ for Neo4j installation instructions.

can you suggest me how to use neo4j in java 11