How to Make a Web Page Read a JAR File
Some types of Java files (such as Java applets, applications or weblets) are bundled into a type of file known as a JAR file. Java "beans" (another application-like file) are also packaged in JAR files. JAR files work very much like a ZIP file in that they are a way to package multiple files and also compress them. This allows them to be loaded much more quickly by a web page, provided it has the proper code to open and read them.
Instructions
-
-
1
Create a Java-enabled web page.
-
2
Put the appropriate JAR file in the same folder as the code for the website.
-
-
3
Purchase an associations editor utility. A good one is Creative Element Power Tools.
-
4
Make .jar files executable with java.exe. To do this, open you associations editor utility and open the disk explorer. Then, go to the options menu and click on the "file types" button. Highlight "executable .jar file" and then hit edit. Then, set the opening application to be java.exe.
-
5
Write the code to open the JAR file. Once you have done the above steps, all you need to do is type in the name of the JAR file, using the command line, to read the file.
-
1