I have created a jar file now i created another java program. I want to unpack that jar file in some other directory means i want to do something like unzip.
If i run jar -xf filename.jar
This causes some error:
Exception in thread "main" java.io.IOException: Cannot run program "jar": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)