New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS - Neo4j 3.1.0-M13-beta3 neo4j-import - Could not find or load main class #8347

Closed
Kerruba opened this Issue Nov 11, 2016 · 21 comments

Comments

Projects
None yet
@Kerruba

Kerruba commented Nov 11, 2016

Neo4j Version:: 3.1.0-M13-beta3 Community Edition
Operating System:: macOS Sierra 10.12.1

Steps to reproduce

  • Download the 3.1.0-M13-beta3 Community Edition version from neo4j site
  • Run neo4j-import

Expected behavior

  • Should start the process

Actual behavior

  • Got an Error: Could not find or load main class org.neo4j.tooling.ImportTool
@spacecowboy

This comment has been minimized.

Contributor

spacecowboy commented Nov 17, 2016

Thanks for the report, this is indeed a bug.

As a work around, are you able to invoke neo4j-admin import instead? This is the new entry point for that functionality.

@spacecowboy

This comment has been minimized.

Contributor

spacecowboy commented Nov 17, 2016

@Kerruba is this the desktop version or the standalone version?

@Kerruba

This comment has been minimized.

Kerruba commented Nov 17, 2016

@spacecowboy what's the difference sorry...

@spacecowboy

This comment has been minimized.

Contributor

spacecowboy commented Nov 18, 2016

@Kerruba when you downloaded neo4j, did you download a dmg-file or a tar.gz-file?

@Kerruba

This comment has been minimized.

Kerruba commented Nov 18, 2016

dmg-file

@lgibelli

This comment has been minimized.

lgibelli commented Dec 18, 2016

I'm experiencing the same problem. I'm running neo4j 3.1 for macosx (dmg package).

It happens with all command line tools:

bash-4.4$ ./neo4j-admin import
Could not find or load main class org.neo4j.commandline.admin.AdminTool
bash-4.4$ ./neo4j-import
Could not find or load main class org.neo4j.tooling.ImportTool
bash-4.4$ ./neo4j-shell
Could not find or load main class org.neo4j.shell.StartClient

Dirty workaround:

$ sudo mkdir /Applications/Neo4j\ Community\ Edition\ 3.1.0.app/Contents/Resources/app/lib
$ sudo cp /Applications/Neo4j\ Community\ Edition\ 3.1.0.app/Contents/Resources/app/bin/neo4j-desktop-3.1.0.jar /Applications/Neo4j\ Community\ Edition\ 3.1.0.app/Contents/Resources/app/lib

Looks like a regression from #6084

@spacecowboy

This comment has been minimized.

Contributor

spacecowboy commented Dec 19, 2016

@lgibelli thanks for the info

@ersel

This comment has been minimized.

ersel commented Dec 24, 2016

Experiencing the same issue here

Mac OS Yosemite 10.10.5
Neo4j Community Edition 3.1.0 installed via dmg file

@lgibelli 's workaround works...

@DiegOrtega

This comment has been minimized.

DiegOrtega commented Mar 14, 2017

ey! neo4j developers how is it going that fix?

@fblamanna

This comment has been minimized.

fblamanna commented May 5, 2017

Same error here with Neo4j 3.1.2 on OS 10.11.6

@ric-bianchi

This comment has been minimized.

ric-bianchi commented May 11, 2017

I confirm that @lgibelli workaround works fine with Neo4j 3.1.3 community edition dmg on MacOS 10.12.4. Thanks, @lgibelli !

@AvinashGupta

This comment has been minimized.

AvinashGupta commented Jun 1, 2017

@lgibelli thanks! it works.

@jzym

This comment has been minimized.

jzym commented Jun 20, 2017

Same error on v3.2.1 on MacOS 10.12.5, but @lgibelli is working, thanks.

@ericvangeem

This comment has been minimized.

ericvangeem commented Jun 23, 2017

Thanks to this SO post, it seems that using the bin/ and lib/ directory files from the tar.gz distribution fixes the problem. I just dropped those two folders into my existing Neo4j installation and it works fine as a result.

@markburns

This comment has been minimized.

markburns commented Jul 21, 2017

Confirmed fix from @lgibelli - #8347 (comment)

Updated command for v3.2.2 for convenience:

sudo mkdir /Applications/Neo4j\ Community\ Edition\ 3.2.2.app/Contents/Resources/app/lib
sudo cp /Applications/Neo4j\ Community\ Edition\ 3.2.2.app/Contents/Resources/app/bin/neo4j-desktop-3.2.2.jar /Applications/Neo4j\ Community\ Edition\ 3.2.2.app/Contents/Resources/app/lib
@pksuf07

This comment has been minimized.

pksuf07 commented Aug 25, 2017

For v3.2.3, it didn't work for me. Instead, I copied neo4j-desktop-3.2.3.jar to /Library/Java/Extensions and it works. Please correct me if I did something wrong.

@szeitlin

This comment has been minimized.

szeitlin commented Sep 29, 2017

worked for me for 3.2.3

@SharvariNagesh

This comment has been minimized.

SharvariNagesh commented Oct 29, 2017

@pksuf07 , with version 3.3.0, copying the jar file to lib did not work but copying it to /Library/Java/Extensions worked. Thanks for the answer

@lhesterberg

This comment has been minimized.

lhesterberg commented Jan 9, 2018

Has anyone encountered this issue with Linux, and if so is there an equivalent fix?

@ajaradv

This comment has been minimized.

ajaradv commented Feb 8, 2018

@lhesterberg, I encountered a similar user, running as sudo allowed me to run the import tool from both neo4j-admin and neo4j-import...

@chrisvest

This comment has been minimized.

Contributor

chrisvest commented May 23, 2018

Lot's of different issues are floating around in the comments. The original problem is solved by the new Neo4j Desktop app, which is effectively just using the tar.gz version behind the nice user interface.

@chrisvest chrisvest closed this May 23, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment