Add a script to get Java version which wrote a JAR