facebook

How to re-add Struts capabilities?

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #266774 Reply

    Firstly, I am a newbie to Eclipse/MyEclipse, so apologies if this a no brainer.

    I created a web project, added struts capablities then imported my existing source.
    I then committed all the Eclipse/MyExclipse specific files to the repository. So far so good.

    But, when I pull the project it will not build because the Struts libraries are missing.
    The error message is “Project MyProject is missing required library”
    eg. ‘MyProject/WEB-INF/lib/commons-beanutils.jar

    I cannot re-add Struts capabilities from the project properties -> MyEclipse menu because the option is not present.

    How to do I re-add the Struts capabilities?
    Or should I add the WEB-INF/lib/struts libs to the repository (seems odd to have to do that)

    #266778 Reply

    JadedGamer
    Member

    You should be able to add the Struts libraries to the project, under Properties, Java Build Path, Libraries. Click “Add Library”, select “MyEclipse Libraries”, and pick whatever you need there. In my MyEclipse it lists a bunch of Hibernate, Spring and XFire libraries there.

    #266782 Reply

    thanks…

    There do not appear to be any Struts libraries in the Project Propeties -> Java Build Path -> Libraries -> Add Library -> MyEclipse Library.

    I can see the Spring, Hibernate and XFire libs, but I dont want them.
    I just want to add the Struts libs.

    Any idea how I can re-add the Struts libs?

    #266800 Reply

    Riyad Kalla
    Member

    The Struts libraries haven’t been ported to our new class path containers yet, so the way to add them is to add Struts Capabilities and to check the box to have the wizard to drop them in.

    If you already have struts caps on your project, then the next thing would be to go to the Struts site and grab the libraries from the latest Struts 1.2 release and drop them into your project manually.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: How to re-add Struts capabilities?

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