WildFly (JBoss) Integration with Eclipse - java

I am currently trying to integrate WildFly and Eclipse JEE Oxygen 3 with WildFly12.0. I am getting an error I don't understand nor can I find a fix. When in the new server I get the following on the last step: "No valid JREs found for execution environment "JavaSE-1.8" "
Thanks in advance!

You need to add JRE 1.8 to your installed JREs and then use it on the build path of your project.
Window -> Preferences -> Java -> Installed JREs -> Add
Then add this JRE to your build path
Right click on your project
Build path -> Configure Build Path
Go to Libraries tab
Add Library -> JRE System Library
Choose JRE 1.8

Related

Unbound classpath container : 'JRE System Library in project 'HelloWorld'

I just installed Eclipse + Java and trying to make my first HelloWorld project.
But I have this error message after creating the project.
I have read the many posts but it does not help me, because I do not even have a JRE installed in my Eclipse,
See my screenshot.
What can I do?
Where to find the JRE?
I have already installed the JDK.
Thanks
I notice you haven't installed any JRE - which is probably your problem.
Download the version (example here 1.8) from Oracle.
Then on Eclipse, try:
Window -> Preferences -> Java -> Installed JREs -> Add
And follow the guide to your previously installed JRE.
Then go to:
Window -> Preferences -> Java -> Compiler -> Compiler compliance level
Ensure that matches the installed JDK.
In your screenshot click the Add... button
Select Standard VM and click Next >
Enter the installation directory of your Java 8 JRE (or better JDK) and click Finish

how to set specific system JRE due to Eclipse project?

I imported Java project from SVN and want to run it without changing the classpath. I installed JDK 8 (java -version shows
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
), but on the project I see error:
Unbound classpath container: 'JRE System Library [JavaSE-1.8]' in project
I also added "Standard VM" in Window -> Preferences -> Java -> Installer JREs, but it didn't help.
I guess I have to set my system JRE exactly to JRE which is set in the project. But as far as I understand, it's the save version...
You can provide project specific JDK/JRE by right clicking on project and then select configure properties. There you can update java compiler.
Look in the Preferences in 'Java > Installed JREs > Execution Environments'.
Click on 'JavaSE-1.8' and select the JRE to be used.
You can select it on run configuration. Then, click on your run option, and then select JRE overlap.
this example is for eclipse

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

what broke up in my eclipse?

For some reason, whenever I create a new Java project, I can't compile anything and I get the following errors:
The project cannot be built until build path errors are resolved
Unbound classpath container: 'JRE System Library[OSGi/Minimum-1.2]' in project 'MyProject'
This didn't use to ever happen, and it used to be very easy to create new Java projects.
Open Properties by Right clicking on your project
Select Java Build Path
Under the Libraries, select JRE System Library under the Libraries.
Then click Edit...
select Alternate JRE under System library
If any, select JRE from the drop down and click finish
If none, click installed JREs...
Under installed JRE Types, select Standard VM, and click next.
Set your JRE home and JRE name and click finish.
Under the install JREs select your newly added JRE and click OK
After that, Repeat step 6.
1.Check whether JRE is properly installed in your system and it is added in Eclipse.
You can try re-installing JDK in your system and
Add JRE to Eclipse from Window -> Preferences -> Java -> Installed JREs.

JRE version is 1.6.0; version 1.7.0 or later is needed to run Google Plugin for Eclipse

I have 3 versions of Java installed on my system: 6, 7, and 8... I am required to have JRE6 available for a product my company develops, so I cannot get rid of it... But despite copying my Eclipse install to a new folder for another project I need to work on and removing JRE6 from this version alltogether, I still cannot get it to work.
How can I get the google plugin for Eclipse to work in my scenario?
If you have created a shortcut to start eclipse, you can add a parameter to tell it to use the jre of your choice like this -
C:\eclipse\eclipse.exe -vm "C:\Programs\jdk\jdk1.7.0_55\bin\javaw.exe"
I have used "javaw" executable from a jdk installation, but you may point to the same executable within a JRE installation as well.
This will resolve the error.
Keep in mind that there is a separation between the JVM that Eclipse itself is running in and the various JREs that you can configure in Eclipse to run your programs/applications. You need to specify to Eclipse what JVM you want it to run under, using eclipse.ini.
That's separate from the Installed JREs configuration you show in your screen shot above.
Add Java 7.0 to Eclipse if you haven't: Window -> Preferences -> Java -> Installed JREs.
Next add Java 7.0 library to your project: Right click on project -> Properties -> Java Build Path -> Libraries tab -> Remove JRE 1.6 and add New Library (JRE System Library, 1.7.0).
Last set Java 7.0 compliance level: Right click on project -> Preferences -> Java Compiler -> Compiler compliance level: 1.7
Also since you can use different Java to run applications, you also have to change this in the Run configuration which you use to start AppEngine related tasks.

Categories