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

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:
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:
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:

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)
Then select plugin you need
UPD
And also check Runtime Environments (window -> preferences)
Eclipse should be restarted after installation

Related

Issue faced while installing m2e on eclipse juno [duplicate]

I am trying to install maven 1.5 in eclipse unfortunately I am getting errors like:
Cannot complete the install because one or more required items could not be found.
Software being installed: m2e - Maven Integration for Eclipse (includes Incubating components) 1.5.0.20140606-0033 (org.eclipse.m2e.feature.feature.group 1.5.0.20140606-0033)
Missing requirement: Maven Integration for Eclipse 1.5.0.20140606-0033 (org.eclipse.m2e.core 1.5.0.20140606-0033) requires 'bundle com.google.guava [14.0.1,16.0.0)' but it could not be found
Cannot satisfy dependency:
From: m2e - Maven Integration for Eclipse (includes Incubating components) 1.5.0.20140606-0033 (org.eclipse.m2e.feature.feature.group 1.5.0.20140606-0033)
To: org.eclipse.m2e.core [1.5.0.20140606-0033]
EClipse juno doesnt support maven 1.5..still they have not added capability of 1.5
so try 1.4 or 1.3
http://download.eclipse.org/technology/m2e/releases/1.3
http://download.eclipse.org/technology/m2e/releases/1.4
MAVEN INSTALLATION
OPTION 1 :
Open Eclipse IDE
Click Help -> Install New Software...
Click Add button at top right corner
At pop up: fill up Name as "M2Eclipse" and Location as http://download.eclipse.org/technology/m2e/releases/1.4
Now click OK
After that installation would be started.
OPTION 2 :-
Open Eclipse
Go to Help -> Eclipse Marketplace
Search by Maven
Click "Install" button at "Maven Integration for Eclipse" section
Follow the instruction step by step
After successful installation do the followings in Eclipse:
Go to Window --> Preferences
Observe, Maven is enlisted at left panel
Finally,
Click on an existing project
Select Configure -> Convert to Maven Project
This is because maven 1.5 is not compatible with eclipse juno.
So we need to use maven 1.4 or 1.3
Steps to install maven 1.4 is below
Click Help in eclipse
Install New Software
Url for the location of site is "http://download.eclipse.org/technology/m2e/releases"
Uncheck the checkbox "Show only the latest versions of available software"
if do not uncheck the checkbox it will only latest version and do not show maven 1.4.
Select m2e and slf4j of 1.4 version and click next.
Note: maven v 1.3 is compatible, correct url for juno: download.eclipse.org/technology/m2e/releases/1.3
If all the above options don't work, then first install the WST plugin in your eclipse.
In order to do that, in Eclipse Juno, go to Install New Software > Add, under Name place Juno and under Location URL insert http://download.eclipse.org/releases/juno.
Then, select WST Server Adapters under Web, XML, Java, ... (last option of the list).
Accept licensing agreement and restart Eclipse.
Then resume the usual procedure to install Maven.
Choose menu Help \ Install New Software..., then add this repository link:
http://download.eclipse.org/technology/m2e/releases/1.2/1.2.0.20120903-1050/
Then install for Eclipse WTP (Web Tool Platform) Juno 4.2.
Uncheck the option "Select only the latest version of this software", so that versions of the plugin compatible to your eclipse will be displayed, you can select one of them.
download.eclipse.org/technology/m2e/releases/1.3 has worked for
Eclipse Java EE IDE for Web Developers.
Version: Indigo Service Release 2
Build id: 20120216-1857
Thanks

JSF facets not available in Eclipse

So I am watching a tutorial about how to configure JSF in eclipse. I understand that you click file -> new -> Dynamic Web Project.
And then it gives you a few options. The Target Runtime will be (for me) Apache Tomcat version 8, and dynamic web module version will be 3.0. And in the configuration drop-down you are supposed to see Java Server Faces 2.0v or 2.1v, but I do not have that option.
Does anyone know why?
That can happen if you started with plain "Eclipse IDE for Java Developers" instead of with "Eclipse IDE for Java EE Developers" and then manually added some plugins on it. Throw away your current Eclipse install and restart clean with "Eclipse IDE for Java EE Developers".
If you dont see the JSF options, then its not part of your original eclipse version. In that case, you need to download the extra tools that you want. Go to Help -> Install New Software and then type the following URL in the box http://download.jboss.org/jbosstools/updates/stable/kepler This URL is for Kepler version of Eclipse. You need to change it according to your eclipse version. jBossTools have JSF features. Restart the eclipse once the s/w is installed successfully.

Can't select between Maven installations in Netbeans

I have a strange problem with Netbeans 7/8 on Windows 7, no matter how often i reinstall Netbeans I can't choose between Maven installations / home neighter do I see any Maven Home Option in the Dropdown (Tools -> Options -> Java -> Maven)
I found the installation path of the embedded Maven inside the netbeans installation path and I edited the settings.xml so i can use the embedded Maven.
But I need more than one Maven installations! Please Help!!!
That would be a bug that you should report at https://netbeans.org/bugzilla (component project, subcomponent maven). Along with details of your setup.

Why doesn't my java compiler level match my installed project facet?

I made a simple Java Google AppEngine application called Guestbook in Eclipse 3.7 and am trying to run it. However, I am encountering an error that lacks a quick fix:
Description Resource Path Location Type
Java compiler level does not match the version of the installed Java project facet.
Guestbook Unknown Faceted Project Problem (Java Version Mismatch)
I tried navigating to Project | Properties to change my project facet. However, I could not find a setting that dealt with "facet."
What does "installed Java project facet" mean, and how do I fix this?
You can see your facets via Right click on your project->properties->Project Facets,
Here you can see my facets for an example web application:
I think your Java facet does not match with the installed one. I'm suspicious that facet is at version 1.5. Please check it.
Add-on:Open the Navigator view, expand the .settings folder, open the file org.eclipse.wst.common.project.facet.core.xml and manually set the Java version to 1.6.
Right click on your project->properties->Project Facets,
This will show your current version of java for your project facet.
In my case I had the correct version for my facet but not my compiler,
So had to right click on project->properties->Java Compiler
Then under Compiler compliance level drop list and change to version of project facet.
its simple.. in Problems infotab, rightclick on error desc and select quickfix... choose facet version upgrade..
I got this issue in IBM RAD tool eclipse It got resolved following below.
Right click on project
Properties
Project facets
Configuration (select Default configuration for WebSphere application server v7.0 )
Apply

Can't create Java Web Application in NetBeans

I want to write a java web application using NetBeans 7.0.1, but i can't find the option Java Web in File -> New Project. Do i need to get any special Java edition to do that?
Go to the Tools menu and select Plugins.
Click on the "Available Plugins" tab.
Check the box for "Java EE Base" (note: on older NetBeans versions, the plugin to install was called "Java Web Applications").
Click the "Install" button.
Click your way through the dialogs until the plugin and its dependencies are installed.
Restart the IDE.
You should now find "Java Web" in File -> New Project.
Go to the Tools menu and select Plugins.
Click on the "Available Plugins" tab.
Check the box for "Java EE Base".
Click the "Install" button.
Select "Web Projects" from plugin list
Check the term & condition checkbox
Click next and wait while NetBeans downloading the plugin
Restart IDE
My answer will provide images for you to understand easily.
Go to Tools -> Plugins like this image
In Plugins windows, select Available Plugins tab, choose and install Java EE Base like this image
Now just follow the instruction and install the plugin, when it's done, restart the Netbeans, then you can create Java Web Application like this image
I had problems while finding the plugins under the Available plugins tab. The reason was under the settings tab, the three checkboxes were unchecked. I checked them all and then I can see the plugins under the Available plugins Tab.
And then I followed the steps mentioned in other answers. Hope this is also useful to this context.
Well, maybe you cant find Java Web in the installation list, so, search for Java EE Base, in Netbeans 7.x is the option, and includes the comment that includes Java Web and EE.
regards
If you have NetBeans 8.2+ and installed the EE edition, open the plugin panel from Tools -> Plugins. Go to the installed tab and check the Java EE Base plugin. Then activate that plugin.
If you need other options as well the select all the plugins under the Web and Java EE category and activate them.
In my case Above mentioned thing didn't worked for me.
I have installed multiple JDK (JDK version 8 and 9) due to which Netbeans 8.2 might not working as expected and then I was unable to create project.
Then I removed JDK9 and cleared cache from \Users\admin\AppData in windows.
Then I was able to create Java Project.

Categories