I was studying how to compile java directly from javac and everything. Then I put all the files in a zip file and renamed it to .jar. It did not work first because of the lack of Manifest - it did not 'find the main class'
But even if I entered directly using -cp the error persists.
When I added the manifest the message appeared: Invalid or corrupted jarfile
I had a chance that a jar would not exactly be a zip, but even though I'm extracting a jar (functional) and compressing again, nothing wrong happens. What error did I make then?