Search the /usr/share directory for files with the extension .jar, and for each file found, replace the text "version=1" with "version=2".
find /usr/share -type f -name "*.jar" -exec sed -i -- 's/version=1/version=2/g' {} \;