Pessoal, boa tarde!
Estou usando a API JavaHelp pela primeira vez e estou fazendo um so de teste seguindo um tutorial…
Em determinada parte do tutorial é dito para criar um jar com os arquivos usando o seguinte comando, pelo prompt e estando dentro da pasta onde estou construindo os arquivos de help…
jar –cf testehelp.jar .
Onde:
- c : switch para criação de um novo jar
- f : switch para informar o nome do jar a ser criado
- demoajuda-lib.jar : nome com a extensão do arquivo a ser criado.
- . : informa que é para compactar todos os arquivos do diretório atual.
Tudo isso pelo prompt…
mas é apresentado o seguinte erro…
C:\Documents and Settings\dmoreno.ATECH\Meus documentos\Faculdade006\TCC\Organizer\Help>jar -cf te
stehelp.jar
Illegal option: û
Usage: jar {ctxu}[vfm0Mi] [jar-file] [manifest-file] [-C dir] files ...
Options:
-c create new archive
-t list table of contents for archive
-x extract named (or all) files from archive
-u update existing archive
-v generate verbose output on standard output
-f specify archive file name
-m include manifest information from specified manifest file
-0 store only; use no ZIP compression
-M do not create a manifest file for the entries
-i generate index information for the specified jar files
-C change to the specified directory and include the following file
If any file is a directory then it is processed recursively.
The manifest file name and the archive file name needs to be specified
in the same order the 'm' and 'f' flags are specified.
Example 1: to archive two class files into an archive called classes.jar:
jar cvf classes.jar Foo.class Bar.class
Example 2: use an existing manifest file 'mymanifest' and archive all the
files in the foo/ directory into 'classes.jar':
jar cvfm classes.jar mymanifest -C foo/ .
O que devo fazer???
Valeu…