Skip to content

Commit b3876ea

Browse files
authored
Update README about java version
1 parent 3eb4c9d commit b3876ea

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

README.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ protocol BOLT.
66
For detailed information such as manual, driver API documentations, changelogs, please refer to
77
[wiki](https://github.com/neo4j/neo4j-java-driver/wiki).
88

9+
## Java version
10+
11+
Starting from 1.5 driver requires Java 8 for building and at runtime.
12+
Please use 1.4 series when Java 7 is required.
13+
914
## Minimum viable snippet
1015

1116
Add the driver to your project:
@@ -33,30 +38,21 @@ Connect to a Neo4j 3.0.0+ database:
3338

3439
driver.close();
3540

36-
## Binding
41+
## Building
3742

3843
The source code here reflects the current development status of a new driver version.
3944
If you want to use the driver in your products, please use the released driver via maven central or check out the
4045
code with git tags instead.
4146

42-
### Java version
47+
### Running tests and creating a package
4348

4449
The driver unit tests relies on latest [`boltkit`](https://github.com/neo4j-contrib/boltkit) installed on your local machine.
4550
If `boltkit` is not installed, then all tests that requires `boltkit` will be ignored and not be executed.
4651

47-
Then if you are running Java 8:
48-
49-
mvn clean install
50-
51-
If you are running Java 7, you need to also provide an environment variable telling the tests where to find
52-
Java 8, because Neo4j-the-database needs it to run.
52+
Then execute the following Maven command:
5353

54-
export NEO4J_JAVA=<path/to/java/home>
5554
mvn clean install
5655

57-
# For instance
58-
export NEO4J_JAVA=$(/usr/libexec/java_home -v 1.8)
59-
6056
### Windows
6157

6258
If you are building on windows, you need to run install as admin, so that Neo4j-the-database could be installed and

0 commit comments

Comments
 (0)