facebook

How to change Java Enterprise Specification from 1.4 to JEE5

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

    ojay78
    Member

    Hi,

    I have web project which is currently unter the J2EE 1.4 Specifications. I want now to add a Restful-Service to this project, therefore I need to change the project to a J2EE 5 Project, otherwise I will receive an error by the myecilpse wizard.

    With this message;

    “Project must be a JEE 5 web project to use the REST framework”

    What I’ve tried:

    I removed the 1.4 J2EE Libraries from the build path and added the Java EE 5 Libraries. But the error occurs again. ALso I can see in the propterties view of the project under the myelipse part that the project is running as a Java Enterprise Specification 1.4

    Can you help me how to solve this???

    Thanks

    #309317 Reply

    support-joy
    Member

    ojay78,

    Can you verify if you have followed below approach?

    1. Created a web project with J2EE 1.4 specification.
    2. For the Java 1.4 spec project, right click on the same and go to the properties window.
    3. Reset the Java Compiler level to 1.5
    4. This will prompt to rebuild project. Click on [Yes]
    5. Go to Java Build Path. Remove J2EE 1.4 Libraries
    6. Click [Add Library]> MyEclipse Library and select Java EE 5 Libraries and click on [Finish] and [OK]
    7. Refresh Project
    8. Right click on the project and click on MyEclipse > Open in Explorer.
    9. Edit mymetadata file and change j2ee-spec to “5.0” save and close this file.
    10. Next right click on the project and click on [close project]
    11. Next right click on the project and click on [open project]
    12. Right click on the project and click on MyEclipse > Add Rest Service Capabilities.

    You should be all set. Let me know how this works for you.

    Best.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How to change Java Enterprise Specification from 1.4 to JEE5

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