web service creation error

Hi,

I created dynamic web project with name WebServiceTest.  I created java class as below



public class Addition{

  public String AddtionMethod(int x,int y){
    return "Addition of "+x+" and "+y+" is "+(x+y);
  }
}

I right clicked on the WebServiceTest  -->File-->New--->Other---> Web Service --->Web Service(not the other Web Service Client)

I am getting below error.


The workbench is running on Java VM version 1.6, however, the compiler compliance level of the project "AdditionWebService" is set to Java version 1.7.  Generation of a Web service from Java cannot proceed because the tools will be unable to process the class file compiled within the project.  To correct the problem, take one of the following actions:
1. Open project properties, select Project Facets, and use Add/Remove Project Facet to change Java version to 1.6 or lower.
2. Restart the workbench on a version 1.7 Java VM.



what is the exact meaning, cause for this error.
how to fix this error.

I do not want my other projects affected by the fix or change t the project facet java version.

While creating java project or dynamic web project javaSE by default getting selected as 1.7 in the dropdown. When i change it 1.6 it shows warning as shown in the attachemnt. How to change default compiler compliance level for current workspace itself rather than doing for each project while creation or after creation right clicking on the project -->properties--java facets-->change to 1.6 everytime.
Please advise.

Any links resources ideas highly appreciated. Thanks in advance
CompilerComplianceLEvel.jpg
LVL 7
gudii9Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mccarlIT Business Systems Analyst / Software DeveloperCommented:
what is the exact meaning, cause for this error.
how to fix this error.
The message that Eclipse is giving you is pretty specific on both of those two points that you ask about. So I don't know what else to say that wouldn't just be repeating that.

As for changing the default workspace compliance level, go to Window -> Preferences  and then in the filter text box type in "compliance" and you should now only have a couple of options filtered for you. Go to Java -> Compiler  and there you will see the compliance setting, change this to 1.6
0
gudii9Author Commented:
>>>As for changing the default workspace compliance level, go to Window -> Preferences  and then in the filter text box type in "compliance" and you should now only have a couple of options filtered for you. Go to Java -> Compiler  and there you will see the compliance setting, change this to 1.6




How to change at global eclipse level to 1.6 so that all projects by default take 1.6 and then i do not have to always do above step for each and every project. please advise
0
mccarlIT Business Systems Analyst / Software DeveloperCommented:
The above post WAS to change the global setting!
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

gudii9Author Commented:
>>>1. Open project properties, select Project Facets, and use Add/Remove Project Facet to change Java version to 1.6 or lower.
2. Restart the workbench on a version 1.7 Java VM.


when we right click on specific project does it change only for that specific project or wil it effect all the projects in workspace. please advise
0
mccarlIT Business Systems Analyst / Software DeveloperCommented:
when we right click on specific project does it change only for that specific project
Does "what" change? Are we talking now about the compliance level or the project facets, or something else.

But note, *some* settings in Eclipse can have a default setting or a project-specific setting. If it is left as the default setting, then it will take the value from the global workspace settings, and so if this global value changes, the effective value in the project will also change. But it the project setting has been altered in anyway, then it is now a "project-specific" setting and any changes to the global workspace setting will no longer have any effect. This is the case even if the project-specific setting happens to have the same value as the default setting, it will still NOT change from the project specific setting value.
0
gudii9Author Commented:
I mean compliance level. please advise

>>>But note, *some* settings in Eclipse can have a default setting or a project-specific setting.
where to get this list of which setting can have default or project specific setting?

>>> But it the project setting has been altered in anyway, then it is now a "project-specific" setting and any changes to the global workspace setting will no longer have any effect


I am bit confused between eclipse global settings, project specific setttings, default settings
0
gudii9Author Commented:
Please advise
0
mccarlIT Business Systems Analyst / Software DeveloperCommented:
where to get this list of which setting can have default or project specific setting?
There is no list of them.

I am bit confused between eclipse global settings, project specific setttings, default settings
Sorry to confuse you, I have just used two terms for the same thing. In the context of what I wrote above, eclipse global settings = default settings. And that is just what is used if not overridden by a project specific setting.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.