Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Problem Deleting Web App Jars
Problem Deleting Web App Jars [message #186670] Sun, 21 January 2007 23:20 Go to next message
Eclipse UserFriend
Originally posted by: nicholasink.gmail.com

I've been developing an application with Eclipse web tools lately, and
just recently needed to remove some of the jars from the /WEB-INF/lib
directory. To my astonishment, the jars I had placed into the WEB-INF/lib
directory can't be removed in Eclipse. Even worse, if you delete them
from the actual directories where they are, they are still present in
Eclipse!

Does anyone know exactly how to remove them? Usually you can just remove
them from the build path, but when I go there the remove button is
disabled.

Your help is very much appreciated.
Re: Problem Deleting Web App Jars [message #186716 is a reply to message #186670] Mon, 22 January 2007 14:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kosta.bea.com

Exquisitus wrote:
> I've been developing an application with Eclipse web tools lately, and
> just recently needed to remove some of the jars from the /WEB-INF/lib
> directory. To my astonishment, the jars I had placed into the
> WEB-INF/lib directory can't be removed in Eclipse. Even worse, if you
> delete them from the actual directories where they are, they are still
> present in Eclipse!
>
> Does anyone know exactly how to remove them? Usually you can just
> remove them from the build path, but when I go there the remove button
> is disabled.
>
> Your help is very much appreciated.
>

The jars that are placed into the WEB-INF/lib directory are
automatically picked up by the "Web App Libraries" classpath container.
Unfortunately, due to how JDT works this makes them disappear from their
original locations in the Package Explorer and Package Explorer views.
Odd, I know.

To work around this, simply open the Resource Navigator view or go into
the Resources Perspective. The jars will appear in their original
locations in the Resource Navigator view and you will be able to delete
them.

If you delete the jars outside of Eclipse (this actually applies to any
project file), you will need to refresh the Eclipse project in order to
let Eclipse pickup your changes. You can find the refresh action under
the File menu.

- Konstantin
Re: Problem Deleting Web App Jars [message #186728 is a reply to message #186670] Mon, 22 January 2007 14:47 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
If you delete the jar external to Eclipse, refreshing the WEB-INF/lib
folder in your project should make the jar disappear from the Web App
Libraries library folder. To delete the jar from within Eclipse, you
can switch to the Resource perspective. The jar is visible under the
WEB-INF/lib folder in your project and you can delete it from there.

Cheers,
Larry

Exquisitus wrote:
> I've been developing an application with Eclipse web tools lately, and
> just recently needed to remove some of the jars from the /WEB-INF/lib
> directory. To my astonishment, the jars I had placed into the
> WEB-INF/lib directory can't be removed in Eclipse. Even worse, if you
> delete them from the actual directories where they are, they are still
> present in Eclipse!
>
> Does anyone know exactly how to remove them? Usually you can just
> remove them from the build path, but when I go there the remove button
> is disabled.
>
> Your help is very much appreciated.
>
Previous Topic:can't register a remote Tomcat Server
Next Topic:How to deploy in tomcat webapps dir
Goto Forum:
  


Current Time: Thu Apr 25 21:55:10 GMT 2024

Powered by FUDForum. Page generated in 0.02366 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top