how to create jar file  
Author Message
Eddy





PostPosted: 2006-6-25 21:09:00 Top

java-programmer, how to create jar file Hi,

In help we can read:


To create a JAR file from your help files, make the top level help folder
the current folder. The jar command

descends recursively through the different directories and copies all of the
files to the JAR file.

Use the following steps to create a JAR file named my_help.jar from the
hierarchy example above:

C:\> cd ...\help (where "..." is the path above the \help folder) 1.

C:...\help> jar -cvf my_help.jar * 2.

The jar -cvf command copies all the files in the \help folder and in all
folders hierarchically beneath it into

a JAR file named my_help.jar. As the command creates the JAR file, it
reports its progress with output like


My error message:

"jar is not recoginized as an internal or external command, operable program
or
batch file"

please help me

Edd


 
andrewthommo





PostPosted: 2006-6-25 22:08:00 Top

java-programmer >> how to create jar file
Eddy wrote:
...
> "jar is not recoginized as an internal or external command, operable program
> or
> batch file"

You need to reference the javac (.exe) in the bin directory of the SDK.

E.G. on my system, javac is in...
C:\Program Files\Java\j2sdk1.5.0\bin

Are you sure you do installed the Java SDK (with development tools
such as javac) and not just the Java run-time - to run applets and
applications?

Andrew T.