There are no jre installed in the workspace
Build path specifies execution environment JavaSE There are no JREs installed in the workspace that are strictly compatible with this environment. My project is compatible with Java 7, 8, 9 and What I want to achieve is to avoid this warning if any of these versions of Java is installed without changing the version in my pom. Something to tell Eclipse that Java 7 or anything above is good. The project still compiles and works fine with the warning, it's just distracting as it marks the project as having issues.
I know that I can hide this type of warnings in Eclipse settings, but is there a way to get rid of it by only using some configuration in pom. The execution environments are mapped to JREs installed in Eclipse i. Eclipse will automatically match an execution environment e. If there is no exact match for the execution environment specified in your project, it will give you a warning like the one you're getting.
What I want to achieve is to avoid this warning if any of these versions of Java is installed. You need to make sure that there is a JRE installed in Eclipse whose version is a perfect match for the value of that property.
Otherwise, the warning will not go away, period. I don't have the intention to target some specific version, the default target would work fine for me. No, it wouldn't, because the default target is 1. Target configuration is a non-optional configuration property, there is no 'target everything' option. This will also make the warning go away, but it will be back as soon as you run Maven project update.
Such a configuration shouldn't really be used, as it ties your project to a specific installation of Java on your machine. Please contact [email protected] to delete if infringement. Avoid the "no JREs installed in the workspace that are strictly compatible" warning in Eclipse for multiple Java versions. John29 Published at Java John29 : I know that there are already a lot of questions about this warning, but my question is a little bit different.
Collected from the Internet Please contact [email protected] to delete if infringement. Share to Weibo. Copy to clipboard. How to avoid multiple inheritance in java. I have no idea what this mean, as I'm still trying to wrap my had around all this java stuff.
I look at my installations and I see this:. Don't worry! Everybody was new at some point. I remember when I was starting out and I felt like a noob too :P. I'm sorry, but it is hard for me to figure out exactly what your problem is, but I think a smart idea is to make sure you are downloading Eclipse from the correct place. Is where I suggest you download Eclipse.
If I remember correctly, once you start to download it, the website will guide you through whatever you need to go through to download Java. All I can currently recommend is that you download the newest version. From my experience, for whatever reason, I already had Java on my system. Another thing that might help is when you download the IDE, download the package which at this time is named the Kepler Package instead of just the IDE.
I hope that helped. Happy programming! Sometimes Eclipse is not very specific with the exceptions and errors and although it's telling you abount JRE, maybe the problem is that you don't have JDK installed. You shoul select a JDK installation in Eclipse to work. Select the lastest version of a JDK and save changes. How are we doing? Please help us improve Stack Overflow. Take our short survey.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 7 years, 7 months ago. Active 7 years, 2 months ago. Viewed 2k times. Improve this question. Unihedron Possible duplicate: stackoverflow. You should be able to select a JavaSE
0コメント