aspose file tools*
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
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: 19543
    
  16

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jar resolution during web project deployement
 
Similar Threads
JARS are visible threrough RAD 7.0
implementing common jars
Required jars in Axis2 libraries?
Facelets Error
migration from struts1.0.2 to struts1.3.8