I am using RAD 7 and I am being shown the following error: Project facet Java 6.0 is not supported by target runtime WebSphere Application Server v6.1.
When I right-click on the erroneous project and select 'Targeted Runtimes' option, it shows no Runtimes in this window. And when I select the check box named 'Show all runtimes', it shows me the following DISABLED Runtimes:
WebSphere Application Server v5.1 Express stub
WebSphere Application Server v5.1 stub
WebSphere Application Server v6.0 stub
WebSphere Application Server v6.1
All the above options are DISABLED.
Can anyone help me in this. Its very urgent. I m not able to understand this as I m new to Eclipse.
The problem you are facing is due to lower version of java being specified in your facet settings.
Goto project properties -> Select Project Facets -> Check the Java version, if it is other than java 5.0 then click on Add/Remove Project Facets.
A new pop-up will open select "Facets Project" from the configurations dropdown.
Now you will see a Project Facet named "Java". select the checkbox and change the version to 5.0 and click finish.
Clean build your workspace.
Hope the above solution works for you. All the best.
Joined: Dec 31, 2009
Thanks for your reply. But the Java version specified in the project facet is not lower; it is 6.0. Please find the screenshot attached.
But when I go to 'Add/Remove Project Facets', the 'Java' version mentioned there is 5.0 which is confusing again.
Also, the checkbox of 'Java' is selected and this message appears at the bottom in RED color: 'Java 6.0 cannot be uninstalled.'
And Next and Finish buttons are all disabled.