Java - JARs

java

http://one-jar.sourceforge.net/

How can a class read a file that is included in the same JAR that this class is included in?

ClassName.class.getResourceAsStream("/initialization/Lifepaths.txt")

See http://stackoverflow.com/questions/16570523/getresourceasstream-returns-null for details

How can we compare two JAR files?

  1. JAPICC: japi-compliance-checker OLD.jar NEW.jar
  2. PkgDiff: pkgdiff OLD.jar NEW.jar
  3. Clirr: java -jar clirr-core-0.6-uber.jar -o OLD.jar -n NEW.jar
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License