2

In Java project I use Maven as a project manager. To my project's pom.xml file I add the following dependency:

<dependency> <groupId>org.neo4j</groupId> <artifactId>neo4j</artifactId> <version>2.1.0-M01</version> </dependency> 

When I try to run the project I get an error:

Could not find or load main class 'package.className'

I'm using Eclipse 4.2 Keppler with m2e plugin.

3
  • Please clean and rebuild the project, that will solve it Commented Mar 17, 2014 at 12:19
  • How are you trying to run the project? Commented Mar 17, 2014 at 13:45
  • I removed ~/~/.m2/repository folder and in Eclipse right-click on project Maven->Update Project... - it works. I'm not sure if clean and rebuild project will help but probably yes Commented Mar 17, 2014 at 14:58

2 Answers 2

1

On Debian (probably other linux too) you should remove ~/~/.m2/repository folder and in Eclipse right-click on project Maven->Update Project...

Sign up to request clarification or add additional context in comments.

Comments

0

In Eclipse work bench mode select the project and then click Alt+F5 to update Maven dependencies for the project.Please let me know if it resolves the issue

1 Comment

I didn't check it because I did what I write in previous post.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.