facebook

type parameters are only available if source level is 5.0

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #233864 Reply

    Lawrenceva
    Member

    I created a new web project and created a class.

    public class Test<H> {

    }

    I am getting the error “Syntax error,type parameters are only available if source level is 5.0” I understand types are used in JRE 1.5 aka 5.0 and I have the JRE System Libraray [1.5.0_03] being used in my web project.

    I then create a new Java Project using eclipse 3.1 without myeclipseide and it works fine?

    I’m so confused here? Any help would be appreciated

    Thanks
    Lawrence

    #233907 Reply

    Scott Anderson
    Participant

    You need to set Window > Preferences > Java > Installed JRE’s and make sure JDK 1.5 is your default JRE. Also, you need to set Window > Preferences > Java > Compiler > Compiler Compliance level to 5.0

    #275457 Reply

    Renen
    Member

    And, you need to update ${jboss.home}/server/default/deploy/jboss-web.deployer/conf/web.xml. Take a look at http://techforb.blogspot.com/.

    Goodluck!

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: type parameters are only available if source level is 5.0

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