Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dynamic Web Project - Project Facets not displaying CDI as a project facet

I'm trying to add CD,I as a project facet to a Dynamic web project. But when clicking on the project facets view there is no CDI option in the Project Facet list as you can see:

enter image description here

I tried following this suggestion in where they said to erase possible conflicting jres, and also the suggestions in here which recommends checking the installed jre's, my view of installed jres is:

intalled jres

I'm at linux mint so I'm also attaching a screenshot of the dir /usr/lib/jvm, in case you guys see any anomaly in it and also it seems my java version is okay: enter image description here

like image 591
CommonSenseCode Avatar asked May 03 '15 21:05

CommonSenseCode


People also ask

How can I see the project facets in eclipse?

In the Project Explorer view of the Java™ EE perspective, right-click the project and then select Properties. Select the Project Facets page in the in the Properties window. This page lists the facets in the project and their versions.

How do I update a project facet in eclipse?

To edit a project's facets, select Project > Properties > Project Facets. Facets have version numbers. Not all facet version numbers can be changed (e.g., a facet available in only one version of software can not have other version numbers).

What is Project facet?

Facets define characteristics and requirements for Java™ EE projects and are used as part of the runtime configuration. When you add a facet to a project, that project is configured to perform a certain task, fulfill certain requirements, or have certain characteristics.


1 Answers

Did you installed JBoss Tools?

Go to Help -> Eclipse Marketplace find JBoss Tools for your version of Eclipse (To check version of eclipse go to Help -> About Eclipse)

JBoss tools in eclipse marketplace

Then select plugin you need

Plugin need

UPD

And also check Runtime Environments (window -> preferences)

enter image description hereenter image description here

Eclipse should be restarted after installation

like image 77
cache Avatar answered Sep 21 '22 01:09

cache