answersLogoWhite

0


Best Answer

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.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

You can't directly do this because a jar file is compiled from Java source files; not built from a zip archive.

You could try changing the extension of the zip, but it probably won't execute in a JVM.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you change a ZIP file into an Executable Jar File?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you convert text file to jar file?

You can change the file extension from .txt to .jar but .jar is a java format and is not normally used to wrap text.


In java what is an application?

An application is a compiled batch of source code, usually in the form of an executable or JAR file.


What is the actually inside the jar file?

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.


What is jar file?

Jar file is Java AR-chive Java Archive File, commonly referred to as a Jar File is nothing more than a compressed archive file.


How do you combine multiple jar file into one jar file so that multiple jar files can be run from one jar file?

78


How can you covert a ZIP file to a JAR file?

We can easily convert the zip file into jar file by using the converting software, named winzip.


Can war file contain jar file?

yes


How do you convert exe file to jar file?

You can't.


How can you open jar file?

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


How java program can run in windows7?

You must have a java runtime environment (JRE) installed to run a jar file .. if it is not a jar ( or it is a class ), you should have the java development kit or JDK .. if the file you are running is a jar file, just double click it. if the file you are running is a class file ex. "MainProg.class" then go to the bin directory, and open command prompt and change to that directory. then java MainProg.class it should run ..


Why would an executable file stop working?

If your file is .exe, the program could start working because one or more files were deleted. If your file is a .jar file, for example the minecraft launcher, It could stop working because some code is missing. If you mean like an error message, that means that necessary files or code is missing, or you are using a shortcut to a directory that doesn't even exist. If it's a .jar file and it isn't working, you're basically screwed.


How do applet differ from application program?

Applets are smaller programs embedded into the browser. An application is an executable .class or .jar file that is run directly from a console/desktop environment.