0

When run following command it gives me

permission denied
message for all the files.

find /data/code/ -name "*.jar" -exec {} ls ;


find: `/data/code/project/shared/build/thirdparty/log4j-1.2.8/commons-logging-1.0.4.jar': Permission denied

But if I do

ls  /data/code/project/shared/build/thirdparty/log4j-1.2.8/commons-logging-1.0.4.jar

It prints gives the proper output without any

permission denied
message.

/data/code/project/shared/build/thirdparty/log4j-1.2.8/commons-logging-1.0.4.jar

What am I doing wrong?

p.s. : I need to list and remove all the jar files in

/data/code