Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to create or convert a project in to JPA Project

I am trying to convert one project to JPA enabled project by assigning "JPA Facet" from preferences > Project Facets in eclipse.

But, there is no option to select "JPA Facets".

enter image description here

After analysis, i found that i am even not able to create a new JPA project with eclipse, i am having.

enter image description here

I am using eclipse JUNO. I think, i am missing something in configuration. I have tried installing eclipselink<>.jar to userlibrary configuration. But, it is not working.

Reason which i found is also mentioned in below duplicate question.
Cannot create JPA Facet: “project facet jpt.jpa could not be found”

In this also, it is mentioned that update to new eclipse. But, is there any way to find out, what is messed up in existing eclipse.

like image 673
Rohit Batta Avatar asked Aug 20 '15 07:08

Rohit Batta


People also ask

Is JPA and Java project same?

The Java Persistence API, sometimes referred to as JPA, is a Java programming language specification which describes the management of relational data in applications using Java Platform, Standard Edition and Java Platform, Enterprise Edition.


1 Answers

Here is what I did and it worked:

  1. Go to help -> install new software

  2. In work with select Neon - http://download.eclipse.org/releases/neon (in my case)

  3. In here you find "Web, XML, Java EE and OSGi Enterprise Development".
    Open it!

  4. Just installed everything that included the title "JPA"

  5. Click finish, install, restart Eclipse

Now try again to find your facet!

like image 181
Nebulosar Avatar answered Oct 12 '22 10:10

Nebulosar