You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/installation/linux/debian.adoc
+13-85Lines changed: 13 additions & 85 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,43 +7,28 @@ You can install Neo4j on Debian, and Debian-based distributions like Ubuntu, usi
7
7
[[debian-prerequisites]]
8
8
== Java prerequisites
9
9
10
-
Neo4j {neo4j-version} requires the Java 17 runtime.
11
-
Java 17 is not included in Ubuntu 16.04 LTS and will have to be set up manually before installing or upgrading to Neo4j {neo4j-version}, as described below.
12
-
Debian 11 and Ubuntu 18.04 onwards already have the OpenJDK Java 17 package available through `apt`.
13
-
From version 5.14 onwards, Neo4j also supports JDK 21.
10
+
Neo4j {neo4j-version} requires the Java 21 runtime.
11
+
12
+
=== OpenJDK Java 21
13
+
Most of our supported Linux distributions have OpenJDK Java 21 available by default.
14
+
Consequently, no extra setup is required if you are using OpenJDK Java, the correct Java dependency will be installed by the package manager when installing Neo4j.
14
15
15
16
[[debian-prerequisites-notopenjdk]]
16
17
=== Oracle JDK, Zulu JDK, or Corretto JDK
17
18
18
19
If you wish to use a non-default JDK, it must be installed before starting the Neo4j installation.
19
20
Otherwise, your package manager will install the default Java distribution for your operating system, usually OpenJDK.
20
21
21
-
Download and installation instructions can be found on the manufacturer's website:
22
+
Java download and installation instructions can be found on the manufacturer's website:
Add the official OpenJDK package repository to `apt`:
32
-
33
-
[source, shell]
34
-
----
35
-
sudo add-apt-repository -y ppa:openjdk-r/ppa
36
-
sudo apt-get update
37
-
----
38
-
39
-
You are now ready to install Neo4j, which will install Java 17 automatically if it is not already installed.
40
-
See xref:installation/linux/debian.adoc#multiple-java-versions[Dealing with multiple installed Java versions] to make sure you can start Neo4j after installation.
41
-
42
-
43
28
[[multiple-java-versions]]
44
29
=== Dealing with multiple installed Java versions
45
30
46
-
You must configure your default Java version to point to Java 17, or Neo4j {neo4j-version-exact} will be unable to start.
31
+
You must configure your default Java version to point to Java 21, or Neo4j {neo4j-version-exact} will be unable to start.
47
32
Do so with the `update-java-alternatives` command.
48
33
49
34
. List all your installed versions of Java with `update-java-alternatives --list`.
@@ -52,27 +37,20 @@ Your results may vary, but this is an example of the output:
To avoid the risk of the `apt` package manager accidentally forcing a database upgrade, different major and minor releases of Neo4j are also available separately inside the repository.
96
-
To install Neo4j this way, specify the major and minor version required, in place of `latest`.
97
-
+
98
-
The following method for production or business-critical installations is recommended:
Copy file name to clipboardExpand all lines: modules/ROOT/pages/installation/linux/rpm.adoc
+10-35Lines changed: 10 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,32 +7,13 @@ You can deploy Neo4j on Red Hat, CentOS, Fedora, or Amazon Linux distributions u
7
7
[[linux-rpm-prerequisites]]
8
8
== Java prerequisites
9
9
10
-
Neo4j 5.x runs on Java 17, and from Neo4j 5.14, it also supports Java 21.
10
+
Neo4j {neo4j-version} requires the Java 21 runtime.
11
11
12
-
13
-
=== OpenJDK Java 17
14
-
Most of our supported Linux distributions have OpenJDK Java 17 available by default.
12
+
=== OpenJDK Java 21
13
+
Most of our supported Linux distributions have OpenJDK Java 21 available by default.
15
14
Consequently, no extra setup is required if you are using OpenJDK Java, the correct Java dependency will be installed by the package manager when installing Neo4j.
16
15
17
-
18
-
[[linux-rpm-prerequisites-oracle]]
19
-
=== Oracle Java 17
20
-
There is some minor setup required for compatibility with Oracle Java 17 because Oracle and OpenJDK provide incompatible RPM packages for Java 17.
21
-
22
-
You can use an adapter for Oracle Java 17, which must be installed before Neo4j.
23
-
The adapter contains no code but stops the package manager from installing OpenJDK 17 as a dependency despite an existing Oracle Java 17 installation.
24
-
25
-
. Download and install the Oracle Java 17 JDK from the https://www.oracle.com/technetwork/java/javase/downloads/index.html[Oracle website].
. Manually move the downloaded RPM packages to the offline machine.
180
-
Before installing Neo4j, you must manually install the required Java 17 packages.
161
+
Before installing Neo4j, you must manually install the required Java 21 packages.
181
162
+
182
-
[NOTE]
183
-
====
184
-
If using Oracle Java 17, the same dependency issues apply as with the xref:installation/linux/rpm.adoc#linux-rpm-prerequisites-oracle[Oracle Java prerequisites].
185
-
You will need to additionally download and install the Java adaptor described in that section.
186
-
====
187
163
. Install Neo4j and Cypher Shell as `root` using the following command depending on which edition you are using:
188
164
+
189
165
[NOTE]
190
166
====
191
-
If you are upgrading from Neo4j 4.4 or earlier versions of 5.x, due to strict dependencies between Neo4j and Cypher Shell, both packages must be upgraded simultaneously.
167
+
If you are upgrading from Neo4j 5.x or earlier, due to strict dependencies between Neo4j and Cypher Shell both packages must be upgraded simultaneously.
192
168
This must be one single command, and Neo4j Cypher Shell must be the first package in the command.
193
-
For later versions, you can install them separately but still need to install Cypher Shell first.
0 commit comments