glennsarti / neo4j-community-chocolatey

A collection Chocolatey packages to install Neo4j Community Edition and various plugins onto a Windows based computer
https://chocolatey.org/packages?q=neo4j
MIT License
9 stars 5 forks source link

Support Modern Community Neo4j & JRE #29

Open Zamanry opened 2 years ago

Zamanry commented 2 years ago

With JRE8/OpenJDK8/etc. well out of date compared to modern versions, I am running into Java dependency conflicts using Choco and other applications using Neo4j 3.5.1 from this repository. I am sure there are a significant amount of security vulnerability associated between these versions as well.

I would appreciate it if we could jump to support Java/OpenJDK 11.X (which is the default from choco install openjdk11). With that said, I see there are modern community server downloads available here:

Zamanry commented 2 years ago

I have manually installed Neo4j 4.4.10 community edition and tried to use choco install openjdk (e.g. version 18) and it failed with the following error:

PS C:\Program Files\Neo4j\bin> .\neo4j.ps1 install-service
WARNING! You are using an unsupported Java runtime.
* Please use Oracle(R) Java(TM) 11, OpenJDK(TM) 11 to run Neo4j.
* Please see https://neo4j.com/docs/ for Neo4j installation instructions.
Neo4j service installed.

The service also refused to start. When I uninstalled all Java/OpenJDK software, installed OpenJDK 11, and reinstalled the service, the service installed successfully and I could use Neo4j. Therefore, we cannot use the latest Java/OpenJDK versions (I am unfamiliar with Java development releases).

I do have some PowerShell code written to manually pull the latest community edition each time it is ran. It will dynamically pull the latest version from Neo4j each time it is executed. I have not worked on managing a choco package, but would be willing to help if required. This out of date package is a big hurdle for my organization.