I was creating a Jar via the Java API’s and I couldn’t get it to run my main class: $ java -jar foo.jar Error: Invalid or corrupt jarfile foo.jar Running it via the class path worked fine: $ java -cp foo.jar Bar Hello world! So now I knew it was something to do with the […]