facebook

type parameters not allowed in a Maven project?

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #311698 Reply

    scasadei
    Member

    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…

    #311757 Reply

    support-joy
    Member

    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.

    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.

    “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

    I would recommend you go through the tutorials here – http://www.myeclipseide.com/module-htmlpages-display-pid-7.html

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: type parameters not allowed in a Maven project?

You must be logged in to post in the forum log in