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
+18-41Lines changed: 18 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,7 @@ You can install Neo4j on Debian, and Debian-based distributions like Ubuntu, usi
8
8
== Java prerequisites
9
9
10
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.
11
+
From version 5.14 onwards, Neo4j also supports Java 21.
14
12
15
13
[[debian-prerequisites-notopenjdk]]
16
14
=== Oracle JDK, Zulu JDK, or Corretto JDK
@@ -25,25 +23,10 @@ Download and installation instructions can be found on the manufacturer's websit
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
26
[[multiple-java-versions]]
44
27
=== Dealing with multiple installed Java versions
45
28
46
-
You must configure your default Java version to point to Java 17, or Neo4j {neo4j-version-exact} will be unable to start.
29
+
You must configure your default Java version to point to Java 17 or 21, or Neo4j {neo4j-version-exact} will be unable to start.
47
30
Do so with the `update-java-alternatives` command.
48
31
49
32
. List all your installed versions of Java with `update-java-alternatives --list`.
@@ -52,27 +35,21 @@ Your results may vary, but this is an example of the output:
0 commit comments