• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

jar resolution during web project deployement

 
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am deploying the web application and i am having 50 odd jars which are included in the classpath and i am sure all of them are not in use. In last one hour i am able to remove 5 jars but to check for all of them it requires lot of time can you please tell me is their any shortcut to check which jars are required in the project and which are surplus.

I am using eclipse 3.2.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remove them all, and add them back based on what your compiler tells you?
 
Sheriff
Posts: 21787
104
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or remove them one at a time (instead of all at the same time), adding them again if the compiler throws an error. This can decrease the number of simultaneous errors you get.

Of course this can lead to runtime exceptions if you use the classes using Class.forName, like database drivers.
[ September 30, 2008: Message edited by: Rob Prime ]
 
subodh gupta
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bingo but thats what i don't want. I don't wanna check each jar thats why i am here to seek your help.
 
Story like this gets better after being told a few times. Or maybe it's just a tiny ad:
professionally read, modify and write PDF files from Java
https://products.aspose.com/pdf/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!