We can easily convert the zip file into jar file by using the converting software, named winzip.
jar openjava -jar filename.jar jar files are basically zip files with an extension of jar. If you just want to view the contents of the file, you may use programmes like winzip or winrar etc.But if you want to use the jar file for some execution you should j2me, or sjboy emulator
The "jar" function is responsible for creating a .jar file. It has similar parameters as given to the Linux "zip" command; it allows you to package all of the necessary binaries into a single file, and also compress them for optimized storage and bandwidth usage.
JAR file is Java Archive file where all classes and related meta information is stored. Basically this format is based or is plain ZIP archive.To launch application in JAR file:java -jar .jarTo extract files from JAR file:jar -xvf .jarIt is possible to create/extract using any other plain ZIP utility.
I believe a jar takes up less memory but requires java to run exe and jar (although a jar is similar to a zip file) can NOT be run on Mac software.
JAR files are simply ZIP files with a different extension. Just chnage the extension from .zip to .jar.
If your dragging the file on top of the jar then thats because the jar is a file and not a folder. If you drag a file on top of another file your say that you want to run file B with file A. Get a zip Archive software like 7zip (google it) If your using a archive software and this is still happening the only think i can think to tell you is open the archive.
78
A JAR file is just a Java ARchive; it is a collection of classes - arranged by package in a folder structure - compressed in a zip archive. In order for a JAR to be executable, it must also contain a manifest file which tells Java what the main class is. This file should be called MANIFEST.MF and be located within a top-level folder: META_INF Details on how to format this file can be found in the link below.
JAR files are basically ZIP files, so you can open them by any software that can work with ZIP files. That includes Windows XP default file-system browser, WinZip, etc. To actually run the JAR archive, you need to have JAVA runtime environment installed on your computer.
Jar file is Java AR-chive Java Archive File, commonly referred to as a Jar File is nothing more than a compressed archive file.
Try using Launch4J to achieve that. But keep in mind that resulting .exe will be able to run only on Windows platform, whilst Java itself allows launching jars on any platform it supports, including Linux, Solaris, BSD, etc.
You can change the file extension from .txt to .jar but .jar is a java format and is not normally used to wrap text.