MyEclipse: type parameters not allowed in a Maven project? scasadei - Oct 02, 2010 - 03:44 PM Post subject: type parameters not allowed in a Maven project?
Hello,
I have created a new Maven project (maven4myeclipse) and I get this compiler error when transferring a class from a non-maven project:
"syntax error: type parameters are available only if source level is 1.5"
I couldn't find any place where the source level is set...support-joy - Oct 05, 2010 - 08:32 AM Post subject: RE: type parameters not allowed in a Maven project?
scasadei,
Can you answer below queries?
1. Can you copy and paste your installation details? Open MyEclipse IDE, from menu options click on MyEclipse > Installation Summary > Installation Details
2.
Quote:
I have created a new Maven project (maven4myeclipse) and I get this compiler error when transferring a class from a non-maven project:
You mention that you are transferring a class from a non-maven project? What is the type of this project? What is the compiler level? Is this MyEclipse created project? Can you elaborate more?
3.
Quote:
"syntax error: type parameters are available only if source level is 1.5"
Have you set JDK 1.5? If not, please do the following download and install JDK 1.5. Next open MyEclipse IDE, from menu options click on Window > Preferences > Java > Installed JREs and set the JDK 1.5 here. Next create the new Maven project with JDK 1.5