How to use JarOutputStream to create a JAR file?
Using that solution causes creating entry with absolute path in *.jar file, for example c:/Users/foo/Temp/blah/com/example/Main.class. I want to build jar with path relative to root, in this example it will be c:/Users/foo/Temp/blah and entries should be com/example/... How to achieve that? Changing working directory is strongly platform-dependent, so it's not good solution.
PS. I've replaced Windows's backslash with slash.