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
Java 17 is not included in Ubuntu 16.04 LTS and will have to be set up manually prior to installing or upgrading to Neo4j {neo4j-version}, as described below.
12
12
Debian 11 and Ubuntu 18.04 onwards already have the OpenJDK Java 17 package available through `apt`.
13
13
14
+
[[debian-prerequisites-notopenjdk]]
14
15
=== Oracle JDK, Zulu JDK, or Corretto JDK
15
16
16
17
If you wish to use a non-default JDK, it must be installed prior to starting the Neo4j installation.
@@ -44,7 +45,7 @@ See xref:installation/linux/debian.adoc#multiple-java-versions[Dealing with mult
44
45
It is important that you configure your default Java version to point to Java 17, or Neo4j {neo4j-version-exact} will be unable to start.
45
46
Do so with the `update-java-alternatives` command.
46
47
47
-
* First list all your installed versions of Java with `update-java-alternatives --list`
48
+
. List all your installed versions of Java with `update-java-alternatives --list`.
48
49
+
49
50
Your results may vary, but this is an example of the output:
. Confirm which version of Java is the default using `java -version` again.
75
+
76
+
[[debian-install-newer-java]]
77
+
=== If `apt` installed OpenJDK 19
78
+
79
+
On newer Debian or Ubuntu operating systems, Java 19 is available by default, and `apt` may have installed OpenJDK 19, *even if Java 17 was already installed*.
80
+
81
+
If this happens, you will see this warning on Neo4j start:
82
+
[output]
83
+
----
84
+
WARNING! You are using an unsupported Java runtime.
85
+
* Please use Oracle(R) Java(TM) 17, OpenJDK(TM) 17 to run Neo4j.
86
+
* Please see https://neo4j.com/docs/ for Neo4j installation instructions.
70
87
----
71
88
89
+
To fix this, you can install Java 17 manually, uninstall OpenJDK 19, or set Java 17 as the default.
90
+
91
+
* Install OpenJDK 17 manually:
92
+
+
93
+
[source, shell, subs="attributes"]
94
+
----
95
+
sudo apt install openjdk-17-jre
96
+
----
97
+
+
98
+
For other distributions of Java 17, see
99
+
xref:installation/linux/debian.adoc#debian-prerequisites-notopenjdk[instructions for setting up java pre-requisites].
100
+
101
+
* Uninstall OpenJDK 19:
102
+
+
103
+
[source, shell, subs="attributes"]
104
+
----
105
+
sudo apt remove openjdk-19-jre-headless
106
+
----
107
+
108
+
* Alternatively, if you want to keep OpenJDK 19 installed, follow the instructions in the section for
109
+
xref:installation/linux/debian.adoc#multiple-java-versions[Dealing with multiple installed Java versions] to set Java 17 as the default java version.
72
110
73
111
[[debian-installation]]
74
112
== Installation
@@ -79,7 +117,7 @@ java -version
79
117
80
118
The Debian package is available from https://debian.neo4j.com.
81
119
82
-
* To use the repository for generally available versions of Neo4j, run:
120
+
. To use the repository for generally available versions of Neo4j, run:
83
121
+
84
122
[source, shell]
85
123
----
@@ -100,7 +138,7 @@ echo 'deb https://debian.neo4j.com stable {neo4j-version}' | sudo tee -a /etc/ap
100
138
sudo apt-get update
101
139
----
102
140
103
-
* Once the repository has been added into `apt`, you can verify which Neo4j versions are available by running:
141
+
. Once the repository has been added to `apt`, you can verify which Neo4j versions are available by running:
104
142
+
105
143
[source, shell]
106
144
----
@@ -109,7 +147,7 @@ apt list -a neo4j
109
147
+
110
148
[NOTE]
111
149
====
112
-
In Ubuntu server installations you will also need to make sure that the `universe` repository is enabled.
150
+
In Ubuntu server installations, you also need to make sure that the `universe` repository is enabled.
113
151
If the `universe` repository is not present, the Neo4j installation will fail with the error `Depends: daemon but it is not installable`.
Note that the version includes an epoch version component (`1:`), in accordance with the https://www.debian.org/doc/debian-policy/#s-f-version[Debian policy on versioning].
180
+
Note that the version includes an epoch version component (`1:`), following the https://www.debian.org/doc/debian-policy/#s-f-version[Debian policy on versioning].
141
181
142
182
When installing Neo4j Enterprise Edition, you will be prompted to accept the license agreement.
143
183
Once the license agreement is accepted installation begins.
@@ -150,7 +190,6 @@ To forget the stored answer, and trigger the license agreement prompt on subsequ
==== Non-interactive installation of Neo4j Enterprise Edition
156
195
@@ -247,7 +286,7 @@ On Debian-based distributions, Neo4j is enabled to start automatically on system
247
286
Before starting up the database for the first time, it is recommended to use the `set-initial-password` command of `neo4j-admin` to define the password for the native user `neo4j`.
248
287
249
288
If the password is not set explicitly using this method, it will be set to the default password `neo4j`.
250
-
In that case, you will be prompted to change the default password at first login.
289
+
In that case, you will be prompted to change the default password at first login.
251
290
252
291
For more information, see xref:configuration/set-initial-password.adoc[].
0 commit comments