my dog learned polymorphism*
The moose likes Beginning Java and the fly likes jar resolution during web project deployement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "jar resolution during web project deployement" Watch "jar resolution during web project deployement" New topic
Author

jar resolution during web project deployement

subodh gupta
Ranch Hand

Joined: Jul 23, 2007
Posts: 203
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.


http://subodh-gupta.blogspot.com
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Remove them all, and add them back based on what your compiler tells you?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19685
    
  20

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 ]

SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
subodh gupta
Ranch Hand

Joined: Jul 23, 2007
Posts: 203
Bingo but thats what i don't want. I don't wanna check each jar thats why i am here to seek your help.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jar resolution during web project deployement