I've been trying to install the newer OSM import plugin for neo4j. using the maven clean intstall (have tried using maven 3.6.1 and 3.6.1/ java jdk 11.0.3 and 12.0.1)running into a build error:
'The code being documented uses modules but the packages defined in Java Platform SE 7 are in the unnamed module.'
Not really neo4j but I'm not a Java developer. Anyone know how to fix this.?
Thanks for that! That worked fine, using Java 8. However, I'm now trying to import an OSM file... trying to follow the instructions on Git..I take it I just run these through the windows command prompt with my path values for target database and source files replaced...it's not working falls over with first error ...Error: Could not find or load main class \ ??? have no idea how to proceed. Any direction would be most appreciated. Thanks.
Hi,I've tried regigging the paths ; the last full error is:
Error: Could not find or load main class \
C:\Users\Kimmo\Development\Graph\Spatial\osm-master\osm-master> "target/osm-0.2.2-neo4j-3.5.1.jar:target/dependency/" org.neo4j.gis.osm.OSMImportTool
'"target/osm-0.2.2-neo4j-3.5.1.jar:target/dependency/"' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Kimmo\Development\Graph\Spatial\osm-master\osm-master> into target/databases/map2 samples/map2.osm.bz2
as one line. It now comes back with 'Error: Could not find or load main class org.neo4j.gis.osm.OSMImportTool"
I can see the OSMImportTool.class file Probably some small other thing..I've tried to search for an answer but no luck to date..is there anything else I need to change?
I have the same error.
In the /target folder I have the following 4 jars:
osm-0.2.3-neo4j-4.0.9-javadoc.jar
osm-0.2.3-neo4j-4.0.0-sources.jar
osm-0.2.3-neo4j-4.0.0-procedures.jar
osm-0.2.3-neo4j-4.0.0.jar
I see a OSMImportTool.class at osm/target/classes/org/neo4j/gis/osm/OSMImportTool.class
I am on Mac OS X.
Neither with ":" nor ";" nor "" nor on a single line does it work.
Any suggestions?
Edit: Today it worked. I had since restarted my computer, perhaps that did something? Anyways, I got another error, but as soon as I update Java that went away as well. (on Mac it works with ":". So ";" is not required there.
If anybody else has the problem, I'm sorry I don't know why it suddenly worked. Just make sure you're in the /osm root and use the osm-[version-you-have]-neo4j-[version-you-have] and it should work.