### 11.6.1 Creating a JAR file

To create a JAR file you need archiving program jar.exe, which is included in the Java Software Development Kit. You can download the JDK here:

http://www.oracle.com/technetwork/java/javase/downloads/index.html

You have two choices:

Let Mif2Go create the JAR file

Create the JAR file yourself.

Let Mif2Go create the JAR file

To have Mif2Go create a JAR file for you, specify a jar command that works on your system. For example:

[JavaHelpOptions] or [OracleHelpOptions]

; JarCommand = path to jar, without any parameters; the cvf and * are

; added before and after the HSFileName (with .jar ext) automatically

JarCommand = D:/j2sdk14/jdk/bin/jar

JarCommand must include an absolute path to jar.exe, unless jar.exe is on your system PATH. Do not include parameters. Mif2Go provides the cvf and * parameters, and gives the resulting JAR file the base name of your helpset file as specified by HSFileName (see §11.3.8.1 Specifying helpset file name and title), and extension .jar.

Create the JAR file yourself

To create a JAR file yourself, run the jar command from the directory where your helpset file is located. The following example creates file myproj.jar and places it in the same directory as the helpset file. You can put the commands in a .bat file.

cd \path\to\MyOutput\help

path\to\JDK\files\bin\jar cvf myproj.jar *

| 11.6 Creating and viewing a Java Archive (JAR) file |  | 11.6.2 Viewing a JAR file |