A third party library I'm utilizing provided the JavaDoc HTML and associated bin files in a zip file. How can I create a jar file from the JavaDoc HTML?
Thanks.
A JAR file is nothing but a ZIP file with an (optional) manifest file inside.
Basically, rename the file to .JAR and that's it.
JDK include jar.exe, for windows following path "%JAVA_HOME%/bin/jar.exe"
Supose you have folder
/somelib/
packages.html
... other html
Go to the somelib directory:
cd /somelib/
jar cvf somelib-3.0-javadoc.jar *
After that in /somelib/ you can find somelib-3.0-javadoc.jar
Quick answer: You can take all the files in a ZIP and put it .jar extension
By zipping the files and renaming the compressed package .jar? (JAR files are basically just ZIP files.)
But why would you want to create a JAR out of the HTML files?
Of course you could just unzip the zip file and add the lib folder you just decompressed to your classpath.