- This topic has 6 replies, 3 voices, and was last updated 19 years, 2 months ago by
thp.
-
AuthorPosts
-
mlsalcedoMemberI’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
April 6, 2006 at 12:57 pm #249923
Riyad KallaMemberGo 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.
May 8, 2006 at 6:10 am #251747
thpMemberIf “auto mount” means: “Automatically add WEB-INF/Lib/…” set to “Yes”:
Even this flag is set, it will not add/mount anything. Bug?
May 8, 2006 at 10:02 am #251758
Riyad KallaMemberCan 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.
May 8, 2006 at 10:24 am #251760
thpMemberI’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 bytesI only use the wizrads to create and update the project, so I don’t start an external process.
May 8, 2006 at 10:29 am #251762
Riyad KallaMembersorry 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.
May 9, 2006 at 3:22 am #251799
thpMemberI did so.
See our other thread in “J2EE-Development”, switching to a new workspace solves the prob.
-
AuthorPosts