# Neo4j-admin import Java problem, Windows 10

**URL:** <https://community.neo4j.com/t/neo4j-admin-import-java-problem-windows-10/59581>\
**Category:** Neo4j Graph Platform\
**Tags:** migrated\
**Created:** [October 25, 2021, 11:00pm UTC](https://community.neo4j.com/t/neo4j-admin-import-java-problem-windows-10/59581 "2021-10-25T23:00:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ewald\_detjens](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/ewald_detjens/32/16518_2.png) [@ewald\_detjens](https://community.neo4j.com/u/ewald_detjens)\
**Post date:** [October 25, 2021, 11:00pm UTC](https://community.neo4j.com/t/neo4j-admin-import-java-problem-windows-10/59581/1 "2021-10-25T23:00:34Z")

</div>

I have an old Windows 10 machine that is getting flaky, so I got a new one, and I am having trouble running neo4j-admin on it. I can bring up the Neo4j browser just fine, but I am having issues using neo4j-admin to do an import. I have no problems on the old machine.

Neo4j-admin does not find a Java installation (shouldn't that be established as part of the installation process?) So I added a path variable to point to the java folder, which now seems to be a Zulu version, in C:\Users\ewald.Neo4jDesktop\distributions\java\zulu11.41.23-ca-jdk11.0.8\bin.  
Now it finds java, but complains about files that are in the current directory, not a problem I've ever seen before:

```auto
C:\Users\ewald\.Neo4jDesktop\relate-data\dbmss\dbms-2080368d-b331-4a9e-9838-48e8efec35cb\import> ..\bin\neo4j-admin import --database BCB --nodes=BCB_nodes.csv --relationships=BCB_links.csv
Selecting JVM - Version:11.0.8, Name:OpenJDK 64-Bit Server VM, Vendor:Azul Systems, Inc.
Invalid value for option '--nodes' at index 0 ([<label>[:<label>]...=]<files>): Invalid nodes file: BCB_nodes.csv (java.lang.IllegalArgumentException: File 'BCB_nodes.csv' doesn't exist)

```

It doesn't seem to find the input file. This command still works fine on my old computer. I tried uninstalling Neo4j, and reinstalling it, but I get the same result. I tried downloading Oracle's version 11 and creating a path to that; that also didn't work.

---

<div class="post-metadata">

**Author:** ![Nabizeus](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/nabizeus/32/20396_2.png) [@Nabizeus](https://community.neo4j.com/u/Nabizeus)\
**Post date:** [July 18, 2022, 1:15pm UTC](https://community.neo4j.com/t/neo4j-admin-import-java-problem-windows-10/59581/2 "2022-07-18T13:15:39Z")

</div>

**../bin/neo4j-admin import --database crimes --nodes crimes\_header.csv,crimes.csv --nodes beats.csv --nodes=PrimaryType=primaryTypes.csv --relationships crimesBeats.csv --relationships=PRIMARY\_TYPE=crimesPrimaryTypes.csv --trim-strings=tr \> import\_crime.out**

The command runs for a second without any screen output....and then in the import\_crime.out I see the following error message:

**ERROR! Neo4j cannot be started using java version 1.8.0\_292.**  
**\* Please use Oracle(R) Java(TM) 11, OpenJDK(TM) 11 to run Neo4j.**  
**\* Please see [https://neo4j.com/docs/](https://neo4j.com/docs/) for Neo4j installation instructions.**  
**~**

---

<div class="post-metadata">

**Author:** ![Nabizeus](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/nabizeus/32/20396_2.png) [@Nabizeus](https://community.neo4j.com/u/Nabizeus)\
**Post date:** [July 18, 2022, 1:02pm UTC](https://community.neo4j.com/t/neo4j-admin-import-java-problem-windows-10/59581/3 "2022-07-18T13:02:53Z")

</div>

What you mean with full path? For each file the full path should be pointed?

so /Users/name/....../crimes\_header.csv, /Users/name/...../crimes.csv and so on?

This is crazy....and it still does not work...I have JAVA 1.8

---

<div class="post-metadata">

**Author:** ![glilienfield](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/glilienfield/32/27534_2.png) [@glilienfield](https://community.neo4j.com/u/glilienfield)\
**Post date:** [September 23, 2022, 11:05am UTC](https://community.neo4j.com/t/neo4j-admin-import-java-problem-windows-10/59581/4 "2022-09-23T11:05:30Z")

</div>

Is that file in the database’s ‘import’ folder? The documentation examples show the node and relationship file names prepended with the import path, such as

--nodes=import/nodes.csv

You can test it that file is in the database’s import folder by executing the following to see if you get data or an error.

load csv from ‘file:///BCB\_nodes.csv’ as row return row limit 1

---

<div class="post-metadata">

**Author:** ![Hwhunter](https://avatars.discourse-cdn.com/v4/letter/h/f17d59/32.png) [@Hwhunter](https://community.neo4j.com/u/Hwhunter)\
**Post date:** [September 23, 2022, 10:35am UTC](https://community.neo4j.com/t/neo4j-admin-import-java-problem-windows-10/59581/5 "2022-09-23T10:35:20Z")

</div>

Finally find answer here: [https://neo4j.com/docs/operations-manual/current/tutorial/neo4j-admin-import/](https://neo4j.com/docs/operations-manual/current/tutorial/neo4j-admin-import/)

Instead of "--nodes=xxx.csv", use "--nodes=import/xxx.csv". (This makes little sense I think) but works for me.
