Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Corrupted jar files

Tags:

jar

How to identify the corrupted jar files in my classpath using jar commands.

Will -xvf help in sorting out corrupted jars?

Please help.

like image 512
Sridevi Laks Avatar asked Jan 27 '26 18:01

Sridevi Laks


1 Answers

I think you would need to look at each jar file individually and allow the jar command to tell when an archive is corrupt. You can use the list command for this:

$ jar tf <jarfile>

Alternatively I guess you could just run java itself, with your desired classpath, and hope that is declares which jar files are corrupt.

like image 125
trojanfoe Avatar answered Jan 29 '26 13:01

trojanfoe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!