Error running OSMImportTool

I am following the README at GitHub - neo4j-contrib/osm: OSM Data Model for Neo4j
I have built the project and am now trying to run it to load my osm sample map into a 4.1.6 (initially I was using v4.3.6 but have reverted incase it was a compatibility issue - still an issue) database which I created using Neo4j Desktop.

When I run the command
java -Xms1024m -Xmx1024m -cp "./target/osm-0.2.3-neo4j-4.1.3.jar;target/dependency/*" org.neo4j.gis.osm.OSMImportTool --skip-duplicate-nodes --delete --into "C:\Users###.Neo4jDesktop\relate-data\dbmss\dbms-853e618d-3f88-4143-bd60-be6406e59b6a" --database map2 ./map.osm

I get the following error. Can anyone suggest what I have done wrong?

=================================================
Importing the contents of these OSM files into C:\Users###.Neo4jDesktop\relate-data\dbmss\dbms-853e618d-3f88-4143-bd60-be6406e59b6a\data\databases\map2:
./map.osm

Available resources:
Total machine memory: 16913207296
Free machine memory: 7782588416
Max heap memory : 1073741824
Processors: 12
Configured max memory: 14255518925
High-IO: true

IMPORT FAILED in 18941d 10h 16m 21s 624ms.
Data statistics is not available.
Peak memory usage: 0B
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.neo4j.internal.helpers.Exceptions
at org.neo4j.kernel.lifecycle.LifeSupport.shutdown(LifeSupport.java:188)
at org.neo4j.gis.osm.OSMImportTool.doImport(OSMImportTool.java:439)
at org.neo4j.gis.osm.OSMImportTool.main(OSMImportTool.java:316)
at org.neo4j.gis.osm.OSMImportTool.main(OSMImportTool.java:225)

I tried this out, and it seems one of the internal API's that Neo4j has for arguments processing when doing batch imports has changed slightly. This is rare, but always possible with internal API's. I've rebuilt it with a small change that I copied from the Neo4j 4.2 version I ported earlier this year.

Try the new release at Release OSM 0.2.3-neo4j-4.1.6 · neo4j-contrib/osm · GitHub

Thanks Craig. However I am sorry to say I pulled down the latest from the repo and rebuilt, but 4.1.6 still gives the same error.

Re-reading your original question, I note that you are getting the failure for the offline import, not actually running the OSM procedures within Neo4j. In this case this is not a compatibility issue, but a missing class issue.

In the README, it says you should run mvn dependency:copy-dependencies before running the command-line import. I just tried the command-line import without that command and got the error:

Error: Unable to initialize main class org.neo4j.gis.osm.OSMImportTool
Caused by: java.lang.NoClassDefFoundError: org/neo4j/io/fs/FileSystemAbstraction

This is not the same error you got. Your run seemed to get further before generating an error. When I copy dependencies, the import succeeds with no error. So I wonder if you perhaps ran the copy-dependencies with a different Neo4j version, and then rebuilt with the desired version, so you got incompatible dependencies?

Could you try repeating the steps:

mvn clean install
mvn dependency:copy-dependencies
java -Xms1024m -Xmx1024m -cp "./target/osm-0.2.3-neo4j-4.1.6.jar;target/dependency/*" org.neo4j.gis.osm.OSMImportTool --skip-duplicate-nodes --delete --into "C:\Users###.Neo4jDesktop\relate-data\dbmss\dbms-853e618d-3f88-4143-bd60-be6406e59b6a" --database map2 ./map.osm

If this still gives the same error, can you provide a listing of the target/dependency directory's contents so I can see what files are there?

Thanks Craig,

I have not had the opportunity to try again yet. However before I do there are a couple of things I would like to check.

" So I wonder if you perhaps ran the copy-dependencies with a different Neo4j version "

I have not been building this on the same machine as my Neo4j instance, does it need to be? I thought that is what maven dependencies was for (retrieving all dependencies from a repro). How do I determine which version the dependencies have been built for. I am using desktop so, can setup whatever version I need.

For reference please find attached the log of "mvn dependencies"

(Attachment dependencies.log is missing)

mvn dependency:copy-dependencies >dependencies.log

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenStreetMap for Neo4j 0.2.3-neo4j-4.1.6
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (default-cli) @ osm ---
[INFO] Copying neo4j-storage-engine-api-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-storage-engine-api-4.1.6.jar
[INFO] Copying neo4j-collections-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-collections-4.1.6.jar
[INFO] Copying neo4j-command-line-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-command-line-4.1.6.jar
[INFO] Copying jakarta.inject-2.6.1.jar to D:\Work\Equator\OSM\osm\target\dependency\jakarta.inject-2.6.1.jar
[INFO] Copying hk2-locator-2.6.1.jar to D:\Work\Equator\OSM\osm\target\dependency\hk2-locator-2.6.1.jar
[INFO] Copying neo4j-diagnostics-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-diagnostics-4.1.6.jar
[INFO] Copying eclipse-collections-api-10.2.0.jar to D:\Work\Equator\OSM\osm\target\dependency\eclipse-collections-api-10.2.0.jar
[INFO] Copying hk2-utils-2.6.1.jar to D:\Work\Equator\OSM\osm\target\dependency\hk2-utils-2.6.1.jar
[INFO] Copying jersey-container-servlet-2.32.jar to D:\Work\Equator\OSM\osm\target\dependency\jersey-container-servlet-2.32.jar
[INFO] Copying jetty-security-9.4.35.v20201120.jar to D:\Work\Equator\OSM\osm\target\dependency\jetty-security-9.4.35.v20201120.jar
[INFO] Copying jersey-common-2.32.jar to D:\Work\Equator\OSM\osm\target\dependency\jersey-common-2.32.jar
[INFO] Copying jersey-container-servlet-core-2.32.jar to D:\Work\Equator\OSM\osm\target\dependency\jersey-container-servlet-core-2.32.jar
[INFO] Copying neo4j-exceptions-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-exceptions-4.1.6.jar
[INFO] Copying neo4j-monitoring-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-monitoring-4.1.6.jar
[INFO] Copying mockito-core-1.10.19.jar to D:\Work\Equator\OSM\osm\target\dependency\mockito-core-1.10.19.jar
[INFO] Copying eclipse-collections-10.2.0.jar to D:\Work\Equator\OSM\osm\target\dependency\eclipse-collections-10.2.0.jar
[INFO] Copying opentest4j-1.2.0.jar to D:\Work\Equator\OSM\osm\target\dependency\opentest4j-1.2.0.jar
[INFO] Copying jackson-jaxrs-base-2.11.3.jar to D:\Work\Equator\OSM\osm\target\dependency\jackson-jaxrs-base-2.11.3.jar
[INFO] Copying neo4j-dbms-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-dbms-4.1.6.jar
[INFO] Copying jackson-databind-2.11.3.jar to D:\Work\Equator\OSM\osm\target\dependency\jackson-databind-2.11.3.jar
[INFO] Copying neo4j-expressions-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-expressions-4.1.6.jar
[INFO] Copying server-api-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\server-api-4.1.6.jar
[INFO] Copying jakarta.ws.rs-api-2.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\jakarta.ws.rs-api-2.1.6.jar
[INFO] Copying asm-util-8.0.1.jar to D:\Work\Equator\OSM\osm\target\dependency\asm-util-8.0.1.jar
[INFO] Copying neo4j-import-util-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-import-util-4.1.6.jar
[INFO] Copying jaxb-api-2.3.0.jar to D:\Work\Equator\OSM\osm\target\dependency\jaxb-api-2.3.0.jar
[INFO] Copying neo4j-cypher-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-cypher-4.1.6.jar
[INFO] Copying asm-tree-8.0.1.jar to D:\Work\Equator\OSM\osm\target\dependency\asm-tree-8.0.1.jar
[INFO] Copying layout-test-utils-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\layout-test-utils-4.1.6.jar
[INFO] Copying neo4j-rewriting-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-rewriting-4.1.6.jar
[INFO] Copying neo4j-cypher-planner-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-cypher-planner-4.1.6.jar
[INFO] Copying lucene-queryparser-8.5.1.jar to D:\Work\Equator\OSM\osm\target\dependency\lucene-queryparser-8.5.1.jar
[INFO] Copying scala-library-2.12.10.jar to D:\Work\Equator\OSM\osm\target\dependency\scala-library-2.12.10.jar
[INFO] Copying commons-logging-1.2.jar to D:\Work\Equator\OSM\osm\target\dependency\commons-logging-1.2.jar
[INFO] Copying zstd-jni-1.4.4-11.jar to D:\Work\Equator\OSM\osm\target\dependency\zstd-jni-1.4.4-11.jar
[INFO] Copying neo4j-cypher-logical-plans-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-cypher-logical-plans-4.1.6.jar
[INFO] Copying reactor-core-3.3.5.RELEASE.jar to D:\Work\Equator\OSM\osm\target\dependency\reactor-core-3.3.5.RELEASE.jar
[INFO] Copying jakarta.xml.bind-api-2.3.3.jar to D:\Work\Equator\OSM\osm\target\dependency\jakarta.xml.bind-api-2.3.3.jar
[INFO] Copying neo4j-configuration-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-configuration-4.1.6.jar
[INFO] Copying neo4j-cypher-interpreted-runtime-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-cypher-interpreted-runtime-4.1.6.jar
[INFO] Copying neo4j-procedure-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-procedure-4.1.6.jar
[INFO] Copying parboiled-scala_2.12-1.2.0.jar to D:\Work\Equator\OSM\osm\target\dependency\parboiled-scala_2.12-1.2.0.jar
[INFO] Copying commons-math3-3.2.jar to D:\Work\Equator\OSM\osm\target\dependency\commons-math3-3.2.jar
[INFO] Copying shiro-lang-1.7.0.jar to D:\Work\Equator\OSM\osm\target\dependency\shiro-lang-1.7.0.jar
[INFO] Copying junit-vintage-engine-5.6.2.jar to D:\Work\Equator\OSM\osm\target\dependency\junit-vintage-engine-5.6.2.jar
[INFO] Copying asm-8.0.1.jar to D:\Work\Equator\OSM\osm\target\dependency\asm-8.0.1.jar
[INFO] Copying junit-jupiter-api-5.6.2.jar to D:\Work\Equator\OSM\osm\target\dependency\junit-jupiter-api-5.6.2.jar
[INFO] Copying neo4j-cypher-expression-evaluator-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-cypher-expression-evaluator-4.1.6.jar
[INFO] Copying commons-text-1.8.jar to D:\Work\Equator\OSM\osm\target\dependency\commons-text-1.8.jar
[INFO] Copying neo4j-front-end-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-front-end-4.1.6.jar
[INFO] Copying neo4j-kernel-4.1.6-tests.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-kernel-4.1.6-tests.jar
[INFO] Copying jetty-webapp-9.4.35.v20201120.jar to D:\Work\Equator\OSM\osm\target\dependency\jetty-webapp-9.4.35.v20201120.jar
[INFO] Copying junit-platform-launcher-1.6.2.jar to D:\Work\Equator\OSM\osm\target\dependency\junit-platform-launcher-1.6.2.jar
[INFO] Copying activation-1.1.1.jar to D:\Work\Equator\OSM\osm\target\dependency\activation-1.1.1.jar
[INFO] Copying apiguardian-api-1.1.0.jar to D:\Work\Equator\OSM\osm\target\dependency\apiguardian-api-1.1.0.jar
[INFO] Copying jersey-client-2.32.jar to D:\Work\Equator\OSM\osm\target\dependency\jersey-client-2.32.jar
[INFO] Copying shiro-crypto-hash-1.7.0.jar to D:\Work\Equator\OSM\osm\target\dependency\shiro-crypto-hash-1.7.0.jar
[INFO] Copying slf4j-nop-1.7.30.jar to D:\Work\Equator\OSM\osm\target\dependency\slf4j-nop-1.7.30.jar
[INFO] Copying jackson-module-jaxb-annotations-2.11.3.jar to D:\Work\Equator\OSM\osm\target\dependency\jackson-module-jaxb-annotations-2.11.3.jar
[INFO] Copying picocli-4.2.0.jar to D:\Work\Equator\OSM\osm\target\dependency\picocli-4.2.0.jar
[INFO] Copying neo4j-batch-insert-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-batch-insert-4.1.6.jar
[INFO] Copying bcpkix-jdk15on-1.68.jar to D:\Work\Equator\OSM\osm\target\dependency\bcpkix-jdk15on-1.68.jar
[INFO] Copying commons-beanutils-1.9.4.jar to D:\Work\Equator\OSM\osm\target\dependency\commons-beanutils-1.9.4.jar
[INFO] Copying junit-jupiter-params-5.6.2.jar to D:\Work\Equator\OSM\osm\target\dependency\junit-jupiter-params-5.6.2.jar
[INFO] Copying neo4j-kernel-api-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-kernel-api-4.1.6.jar
[INFO] Copying neo4j-util-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-util-4.1.6.jar
[INFO] Copying javax.servlet-api-3.1.0.jar to D:\Work\Equator\OSM\osm\target\dependency\javax.servlet-api-3.1.0.jar
[INFO] Copying neo4j-logging-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-logging-4.1.6.jar
[INFO] Copying neo4j-fulltext-index-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-fulltext-index-4.1.6.jar
[INFO] Copying jetty-server-9.4.35.v20201120.jar to D:\Work\Equator\OSM\osm\target\dependency\jetty-server-9.4.35.v20201120.jar
[INFO] Copying jetty-util-9.4.35.v20201120.jar to D:\Work\Equator\OSM\osm\target\dependency\jetty-util-9.4.35.v20201120.jar
[INFO] Copying WMI4Java-1.6.3.jar to D:\Work\Equator\OSM\osm\target\dependency\WMI4Java-1.6.3.jar
[INFO] Copying jakarta.validation-api-2.0.2.jar to D:\Work\Equator\OSM\osm\target\dependency\jakarta.validation-api-2.0.2.jar
[INFO] Copying neo4j-wal-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-wal-4.1.6.jar
[INFO] Copying neo4j-ast-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-ast-4.1.6.jar
[INFO] Copying neo4j-kernel-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-kernel-4.1.6.jar
[INFO] Copying neo4j-graphdb-api-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-graphdb-api-4.1.6.jar
[INFO] Copying neo4j-id-generator-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-id-generator-4.1.6.jar
[INFO] Copying it-test-support-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\it-test-support-4.1.6.jar
[INFO] Copying neo4j-cypher-runtime-util-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-cypher-runtime-util-4.1.6.jar
[INFO] Copying shiro-cache-1.7.0.jar to D:\Work\Equator\OSM\osm\target\dependency\shiro-cache-1.7.0.jar
[INFO] Copying neo4j-label-index-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-label-index-4.1.6.jar
[INFO] Copying asm-analysis-8.0.1.jar to D:\Work\Equator\OSM\osm\target\dependency\asm-analysis-8.0.1.jar
[INFO] Copying neo4j-record-storage-engine-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-record-storage-engine-4.1.6.jar
[INFO] Copying jopt-simple-4.6.jar to D:\Work\Equator\OSM\osm\target\dependency\jopt-simple-4.6.jar
[INFO] Copying neo4j-consistency-check-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-consistency-check-4.1.6.jar
[INFO] Copying scala-reflect-2.12.10.jar to D:\Work\Equator\OSM\osm\target\dependency\scala-reflect-2.12.10.jar
[INFO] Copying neo4j-concurrent-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-concurrent-4.1.6.jar
[INFO] Copying lucene-core-8.5.1.jar to D:\Work\Equator\OSM\osm\target\dependency\lucene-core-8.5.1.jar
[INFO] Copying jna-5.5.0.jar to D:\Work\Equator\OSM\osm\target\dependency\jna-5.5.0.jar
[INFO] Copying neo4j-io-4.1.6-tests.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-io-4.1.6-tests.jar
[INFO] Copying hamcrest-library-1.3.jar to D:\Work\Equator\OSM\osm\target\dependency\hamcrest-library-1.3.jar
[INFO] Copying shiro-core-1.7.0.jar to D:\Work\Equator\OSM\osm\target\dependency\shiro-core-1.7.0.jar
[INFO] Copying neo4j-native-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-native-4.1.6.jar
[INFO] Copying zstd-proxy-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\zstd-proxy-4.1.6.jar
[INFO] Copying reactive-streams-1.0.3.jar to D:\Work\Equator\OSM\osm\target\dependency\reactive-streams-1.0.3.jar
[INFO] Copying jProcesses-1.6.5.jar to D:\Work\Equator\OSM\osm\target\dependency\jProcesses-1.6.5.jar
[INFO] Copying assertj-core-3.16.0.jar to D:\Work\Equator\OSM\osm\target\dependency\assertj-core-3.16.0.jar
[INFO] Copying neo4j-csv-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-csv-4.1.6.jar
[INFO] Copying jetty-util-ajax-9.4.35.v20201120.jar to D:\Work\Equator\OSM\osm\target\dependency\jetty-util-ajax-9.4.35.v20201120.jar
[INFO] Copying lucene-analyzers-common-8.5.1.jar to D:\Work\Equator\OSM\osm\target\dependency\lucene-analyzers-common-8.5.1.jar
[INFO] Copying shiro-crypto-core-1.7.0.jar to D:\Work\Equator\OSM\osm\target\dependency\shiro-crypto-core-1.7.0.jar
[INFO] Copying jetty-io-9.4.35.v20201120.jar to D:\Work\Equator\OSM\osm\target\dependency\jetty-io-9.4.35.v20201120.jar
[INFO] Copying jetty-xml-9.4.35.v20201120.jar to D:\Work\Equator\OSM\osm\target\dependency\jetty-xml-9.4.35.v20201120.jar
[INFO] Copying hk2-api-2.6.1.jar to D:\Work\Equator\OSM\osm\target\dependency\hk2-api-2.6.1.jar
[INFO] Copying javax.ws.rs-api-2.1.1.jar to D:\Work\Equator\OSM\osm\target\dependency\javax.ws.rs-api-2.1.1.jar
[INFO] Copying neo4j-layout-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-layout-4.1.6.jar
[INFO] Copying jakarta.annotation-api-1.3.5.jar to D:\Work\Equator\OSM\osm\target\dependency\jakarta.annotation-api-1.3.5.jar
[INFO] Copying commons-io-2.6.jar to D:\Work\Equator\OSM\osm\target\dependency\commons-io-2.6.jar
[INFO] Copying shiro-config-ogdl-1.7.0.jar to D:\Work\Equator\OSM\osm\target\dependency\shiro-config-ogdl-1.7.0.jar
[INFO] Copying neo4j-unsafe-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-unsafe-4.1.6.jar
[INFO] Copying jettison-1.4.1.jar to D:\Work\Equator\OSM\osm\target\dependency\jettison-1.4.1.jar
[INFO] Copying junit-platform-engine-1.6.2.jar to D:\Work\Equator\OSM\osm\target\dependency\junit-platform-engine-1.6.2.jar
[INFO] Copying jakarta.activation-api-1.2.2.jar to D:\Work\Equator\OSM\osm\target\dependency\jakarta.activation-api-1.2.2.jar
[INFO] Copying jaxb-runtime-2.3.3.jar to D:\Work\Equator\OSM\osm\target\dependency\jaxb-runtime-2.3.3.jar
[INFO] Copying jctools-core-3.0.0.jar to D:\Work\Equator\OSM\osm\target\dependency\jctools-core-3.0.0.jar
[INFO] Copying jersey-media-jaxb-2.32.jar to D:\Work\Equator\OSM\osm\target\dependency\jersey-media-jaxb-2.32.jar
[INFO] Copying junit-jupiter-5.6.2.jar to D:\Work\Equator\OSM\osm\target\dependency\junit-jupiter-5.6.2.jar
[INFO] Copying test-utils-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\test-utils-4.1.6.jar
[INFO] Copying bcprov-jdk15on-1.68.jar to D:\Work\Equator\OSM\osm\target\dependency\bcprov-jdk15on-1.68.jar
[INFO] Copying jackson-annotations-2.11.3.jar to D:\Work\Equator\OSM\osm\target\dependency\jackson-annotations-2.11.3.jar
[INFO] Copying neo4j-codegen-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-codegen-4.1.6.jar
[INFO] Copying jmh-core-1.19.jar to D:\Work\Equator\OSM\osm\target\dependency\jmh-core-1.19.jar
[INFO] Copying hamcrest-core-1.3.jar to D:\Work\Equator\OSM\osm\target\dependency\hamcrest-core-1.3.jar
[INFO] Copying jPowerShell-3.0.jar to D:\Work\Equator\OSM\osm\target\dependency\jPowerShell-3.0.jar
[INFO] Copying neo4j-bolt-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-bolt-4.1.6.jar
[INFO] Copying jamm-0.3.3.jar to D:\Work\Equator\OSM\osm\target\dependency\jamm-0.3.3.jar
[INFO] Copying jersey-hk2-2.32.jar to D:\Work\Equator\OSM\osm\target\dependency\jersey-hk2-2.32.jar
[INFO] Copying neo4j-data-collector-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-data-collector-4.1.6.jar
[INFO] Copying neo4j-cypher-ir-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-cypher-ir-4.1.6.jar
[INFO] Copying neo4j-spatial-index-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-spatial-index-4.1.6.jar
[INFO] Copying istack-commons-runtime-3.0.11.jar to D:\Work\Equator\OSM\osm\target\dependency\istack-commons-runtime-3.0.11.jar
[INFO] Copying neo4j-cypher-macros-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-cypher-macros-4.1.6.jar
[INFO] Copying neo4j-import-tool-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-import-tool-4.1.6.jar
[INFO] Copying jackson-jaxrs-json-provider-2.11.3.jar to D:\Work\Equator\OSM\osm\target\dependency\jackson-jaxrs-json-provider-2.11.3.jar
[INFO] Copying slf4j-api-1.7.30.jar to D:\Work\Equator\OSM\osm\target\dependency\slf4j-api-1.7.30.jar
[INFO] Copying parboiled-core-1.2.0.jar to D:\Work\Equator\OSM\osm\target\dependency\parboiled-core-1.2.0.jar
[INFO] Copying neo4j-graph-algo-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-graph-algo-4.1.6.jar
[INFO] Copying neo4j-lock-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-lock-4.1.6.jar
[INFO] Copying lucene-backward-codecs-8.5.1.jar to D:\Work\Equator\OSM\osm\target\dependency\lucene-backward-codecs-8.5.1.jar
[INFO] Copying jersey-server-2.32.jar to D:\Work\Equator\OSM\osm\target\dependency\jersey-server-2.32.jar
[INFO] Copying shiro-config-core-1.7.0.jar to D:\Work\Equator\OSM\osm\target\dependency\shiro-config-core-1.7.0.jar
[INFO] Copying jackson-core-2.11.3.jar to D:\Work\Equator\OSM\osm\target\dependency\jackson-core-2.11.3.jar
[INFO] Copying txw2-2.3.3.jar to D:\Work\Equator\OSM\osm\target\dependency\txw2-2.3.3.jar
[INFO] Copying javassist-3.25.0-GA.jar to D:\Work\Equator\OSM\osm\target\dependency\javassist-3.25.0-GA.jar
[INFO] Copying junit-jupiter-engine-5.6.2.jar to D:\Work\Equator\OSM\osm\target\dependency\junit-jupiter-engine-5.6.2.jar
[INFO] Copying jakarta.activation-1.2.2.jar to D:\Work\Equator\OSM\osm\target\dependency\jakarta.activation-1.2.2.jar
[INFO] Copying neo4j-token-api-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-token-api-4.1.6.jar
[INFO] Copying commons-codec-1.14.jar to D:\Work\Equator\OSM\osm\target\dependency\commons-codec-1.14.jar
[INFO] Copying neo4j-security-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-security-4.1.6.jar
[INFO] Copying neo4j-values-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-values-4.1.6.jar
[INFO] Copying commons-lang3-3.10.jar to D:\Work\Equator\OSM\osm\target\dependency\commons-lang3-3.10.jar
[INFO] Copying neo4j-parser-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-parser-4.1.6.jar
[INFO] Copying shiro-crypto-cipher-1.7.0.jar to D:\Work\Equator\OSM\osm\target\dependency\shiro-crypto-cipher-1.7.0.jar
[INFO] Copying neo4j-procedure-api-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-procedure-api-4.1.6.jar
[INFO] Copying neo4j-resource-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-resource-4.1.6.jar
[INFO] Copying neo4j-lucene-index-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-lucene-index-4.1.6.jar
[INFO] Copying io-test-utils-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\io-test-utils-4.1.6.jar
[INFO] Copying jetty-servlet-9.4.35.v20201120.jar to D:\Work\Equator\OSM\osm\target\dependency\jetty-servlet-9.4.35.v20201120.jar
[INFO] Copying objenesis-2.1.jar to D:\Work\Equator\OSM\osm\target\dependency\objenesis-2.1.jar
[INFO] Copying neo4j-cypher-planner-spi-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-cypher-planner-spi-4.1.6.jar
[INFO] Copying caffeine-2.8.2.jar to D:\Work\Equator\OSM\osm\target\dependency\caffeine-2.8.2.jar
[INFO] Copying neo4j-ssl-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-ssl-4.1.6.jar
[INFO] Copying netty-all-4.1.48.Final.jar to D:\Work\Equator\OSM\osm\target\dependency\netty-all-4.1.48.Final.jar
[INFO] Copying neo4j-io-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-io-4.1.6.jar
[INFO] Copying awaitility-4.0.2.jar to D:\Work\Equator\OSM\osm\target\dependency\awaitility-4.0.2.jar
[INFO] Copying commons-collections-3.2.2.jar to D:\Work\Equator\OSM\osm\target\dependency\commons-collections-3.2.2.jar
[INFO] Copying junit-4.12.jar to D:\Work\Equator\OSM\osm\target\dependency\junit-4.12.jar
[INFO] Copying neo4j-server-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-server-4.1.6.jar
[INFO] Copying annotations-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\annotations-4.1.6.jar
[INFO] Copying neo4j-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-4.1.6.jar
[INFO] Copying neo4j-index-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-index-4.1.6.jar
[INFO] Copying shiro-event-1.7.0.jar to D:\Work\Equator\OSM\osm\target\dependency\shiro-event-1.7.0.jar
[INFO] Copying neo4j-common-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-common-4.1.6.jar
[INFO] Copying commons-compress-1.20.jar to D:\Work\Equator\OSM\osm\target\dependency\commons-compress-1.20.jar
[INFO] Copying jetty-http-9.4.35.v20201120.jar to D:\Work\Equator\OSM\osm\target\dependency\jetty-http-9.4.35.v20201120.jar
[INFO] Copying junit-platform-commons-1.6.2.jar to D:\Work\Equator\OSM\osm\target\dependency\junit-platform-commons-1.6.2.jar
[INFO] Copying neo4j-fabric-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-fabric-4.1.6.jar
[INFO] Copying neo4j-schema-4.1.6.jar to D:\Work\Equator\OSM\osm\target\dependency\neo4j-schema-4.1.6.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.875 s
[INFO] Finished at: 2021-11-15T23:00:15+00:00
[INFO] Final Memory: 20M/74M
[INFO] ------------------------------------------------------------------------

It is important to run mvn dependency:copy-dependencies on the same computer you plan to run on. This command copies all the libraries needed into the target/dependency directory. If you see the log you sent:

It has copied this file into D:\Work\Equator\OSM\osm\target\dependency\neo4j-4.1.6.jar.

You can run on another computer, but then you need to copy all these JAR files onto that computer, and make sure that the command includes them on the classpath.

Your original command you sent was:

java -Xms1024m -Xmx1024m -cp "./target/osm-0.2.3-neo4j-4.1.3.jar;target/dependency/*" org.neo4j.gis.osm.OSMImportTool --skip-duplicate-nodes --delete --into "C:\Users###.Neo4jDesktop\relate-data\dbmss\dbms-853e618d-3f88-4143-bd60-be6406e59b6a" --database map2 ./map.osm

This means it expected to find all these jars in the target/dependency folder relative to where you ran the command. If the files are not there, then a classpath exception will be thrown.

Can you confirm which files are in that directory on the computer you are running the command? It should be the complete list you sent above.

Hi @craig.taverner - I'm wondering if this error is due to incompatibility with apple's M1 chip. I get this same error when using the OSMImportTool on mac's with the M1 chip, but my same steps work fine on an older mac with the intel chip. Any thoughts / suggestions on making it work with M1? Thanks! - Brian