chucknor
chucknor

Reputation: 849

MANIFEST.MF (The system cannot find the path specified)

I am trying to create the project as set out in the tutorial "http://crunchify.com/how-to-build-restful-service-with-java-using-jax-rs-and-jersey/". I have followed all the steps but I get thee POM error ....

Description Resource Path Location Type C:\Users\xxxxxx\workspace\CrunchifyRESTJerseyExample\target\m2e-wtp\web-resources\META-INF\MANIFEST.MF (The system cannot find the path specified) pom.xml /CrunchifyRESTJerseyExample line 1 Maven Configuration Problem

I've noticed that I have 2 Web Content folders: One under Deployed Resources, which does contain my MANIFEST.MF file and another at the same level as the Deployed Resources folder. Eclipse seems to be looking for it in the second WebContent folder where it is not located. Is there a simple fix for this?

Upvotes: 25

Views: 50641

Answers (6)

Anuj Tiwari
Anuj Tiwari

Reputation: 1

For Eclipse:

  • Check if your project does not have the folder - src/main/java.

  • Then right-click on the project -> Click Build Path -> Configure build path -> click on the sources tab in the opened window.

  • You will not see the error for the src/main/java folder missing.

  • Select it and remove it. The error will be gone.

Upvotes: 0

Oshadi
Oshadi

Reputation: 21

Updating Maven project just resolved my problem

Upvotes: 1

harun ugur
harun ugur

Reputation: 1852

Thre are two ways to solve this error.

From Eclipse:

Right-click on the project -> Go to Maven -> Update project.

Upvotes: 1

Go to Libraries tab in the projects' Build Path. JRE system library must be projects's default JRE.

Upvotes: 1

dchang
dchang

Reputation: 1141

I had similar problem and updating the Maven project solved it.

In Eclipse, right click on the project > Maven > Update Project

See this post: http://kodurishiva.blogspot.pt/2016/04/manifestmf-system-cannot-find-path.html

This situation returns when I do a maven clean.

Upvotes: 68

Akshay Pethani
Akshay Pethani

Reputation: 2570

Thre are two ways to solve this error.

From Eclipse:

Right-click on the project -> Go to Maven -> Update project.

enter image description here

The second way is from maven clean install using the command line maven.

Use the following command:

mvn clean

Upvotes: 18

Related Questions