facebook

Missing struts jars in classpath

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #249887 Reply

    mlsalcedo
    Member

    I’m just creating a new web project, I Eclipse Version: 3.1.2. MyEclipseIde 4.1.1GA. When I add struts capabilities everything goes well except that it’s not adding struts jar to project classpath. So I cannot do anything. I just installed eclipse and myeclipseide plugin

    #249923 Reply

    Riyad Kalla
    Member

    Go to your project properties then Java Build Path > Libraries, click Add then drill down to your WEB-INF/lib dir and add them all manually.

    There is a setting under Window > Prefs > MyEclipse > J2EE Projects > Web Projects to auto mount libraries for you, check to make sure it’s enabled.

    #251747 Reply

    thp
    Member

    If “auto mount” means: “Automatically add WEB-INF/Lib/…” set to “Yes”:

    Even this flag is set, it will not add/mount anything. Bug?

    #251758 Reply

    Riyad Kalla
    Member

    Can you see the JARs when you switch to your navigator view? Try refreshing your project from the root, if you are copying the resources in using an external process, it’s possible it is flying in under Eclipse’s radar.

    Otherwise, yes, sounds like a bug. List off ALL the files (not just JAR, but ALL) the files in your /lib dir for me from the navigator view. We had a bug a while back where if there were non-JAR files in there, the auto-mount feature didn’t work, but that was fixed in version 3.8.4 or 4.0, I don’t recall.

    #251760 Reply

    thp
    Member

    I’m a newbie, what is a “navigator view”???

    Directory of C:\eclipse\XXX\WebRoot\WEB-INF\lib

    08.05.2006 17:11 <DIR> .
    08.05.2006 17:11 <DIR> ..
    08.05.2006 17:11 118.726 commons-beanutils.jar
    08.05.2006 17:11 165.119 commons-collections.jar
    08.05.2006 17:11 109.096 commons-digester.jar
    08.05.2006 17:11 22.379 commons-fileupload.jar
    08.05.2006 17:11 63.980 commons-lang.jar
    08.05.2006 17:11 31.605 commons-logging.jar
    08.05.2006 17:11 46.865 commons-validator.jar
    08.05.2006 17:11 65.368 jakarta-oro.jar
    08.05.2006 17:11 10.518 struts-legacy.jar
    08.05.2006 17:11 498.051 struts.jar
    10 File(s) 1.131.707 bytes

    I only use the wizrads to create and update the project, so I don’t start an external process.

    #251762 Reply

    Riyad Kalla
    Member

    sorry it’s actually the “Navigation” view, but it’s not important, the listing you gave me looks good. Just to save you the time, open your project properties, go to Java Build Path, then the Libraries tab. Click “Add” then drill down and select all the JARs under WEB-INF/lib and hit OK.

    #251799 Reply

    thp
    Member

    I did so.

    See our other thread in “J2EE-Development”, switching to a new workspace solves the prob.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Missing struts jars in classpath

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