@@ -6,6 +6,11 @@ protocol BOLT.
6
6
For detailed information such as manual, driver API documentations, changelogs, please refer to
7
7
[ wiki] ( https://github.com/neo4j/neo4j-java-driver/wiki ) .
8
8
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
+
9
14
## Minimum viable snippet
10
15
11
16
Add the driver to your project:
@@ -33,30 +38,21 @@ Connect to a Neo4j 3.0.0+ database:
33
38
34
39
driver.close();
35
40
36
- ## Binding
41
+ ## Building
37
42
38
43
The source code here reflects the current development status of a new driver version.
39
44
If you want to use the driver in your products, please use the released driver via maven central or check out the
40
45
code with git tags instead.
41
46
42
- ### Java version
47
+ ### Running tests and creating a package
43
48
44
49
The driver unit tests relies on latest [ ` boltkit ` ] ( https://github.com/neo4j-contrib/boltkit ) installed on your local machine.
45
50
If ` boltkit ` is not installed, then all tests that requires ` boltkit ` will be ignored and not be executed.
46
51
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:
53
53
54
- export NEO4J_JAVA=<path/to/java/home>
55
54
mvn clean install
56
55
57
- # For instance
58
- export NEO4J_JAVA=$(/usr/libexec/java_home -v 1.8)
59
-
60
56
### Windows
61
57
62
58
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