Erro para criar o .Jar no netBeans

7 respostas
DonCabelo

E ae galera blz, estou começando a estudar java, e estou usando a ide NetBeans.
Quando tento criar o arquivo .Jar da o seguinte erro:
init:
deps-clean:
Deleting directory C:\Documents and Settings\D.C TI\Desktop\Aula07 \PrjAgenda\build
Deleting directory C:\Documents and Settings\D.C TI\Desktop\Aula07 \PrjAgenda\dist
clean:
init:
deps-jar:
Created dir: C:\Documents and Settings\D.C TI\Desktop\Aula07 \PrjAgenda\build\classes
Created dir: C:\Documents and Settings\D.C TI\Desktop\Aula07 \PrjAgenda\build\empty
Compiling 7 source files to C:\Documents and Settings\D.C TI\Desktop\Aula07 \PrjAgenda\build\classes
compile:
Created dir: C:\Documents and Settings\D.C TI\Desktop\Aula07 \PrjAgenda\dist
Building jar: C:\Documents and Settings\D.C TI\Desktop\Aula07 \PrjAgenda\dist\PrjAgenda.jar
Copy libraries to C:\Documents and Settings\D.C TI\Desktop\Aula07 \PrjAgenda\dist\lib.
To run this application from the command line without Ant, try:
java -jar “C:\Documents and Settings\D.C TI\Desktop\Aula07 \PrjAgenda\dist\PrjAgenda.jar”
jar:
CONSTRUÍDO COM SUCESSO (tempo total: 2 segundos)

se alguém poder me ajudar serei grato
vlw!!

7 Respostas

T

Onde está o erro?

DonCabelo

onde está em negrito
To run this application from the command line without Ant, try:
java -jar “C:\Documents and Settings\D.C TI\Desktop\Aula07 \PrjAgenda\dist\PrjAgenda.jar”

DonCabelo

quando vou executar o .Jar ele não executa

flaviorgiron

Olá DonCabelo.

Na verdade isto não é um erro e sim um aviso que com a tradução do Google seria:

"To run this application from the command line without Ant, try:
Para executar esta aplicação a partir da linha de comando sem Ant, tente: "

Caso ocorresse algum erro durante ao processo, o netbeans não geraria o .jar.

O que pode estar ocorrendo que ele não esta encontrando o método Main, ou esta ocorrendo algum erro em tempo de execução.

Grato.

DonCabelo

valeu flaviorgiron
mt obrigado pela dica
estou iniciando em java e
não sei mt coisa ainda.
vlw

nathanpc

Olá DonCabelo,
Concordo com todos, não ha erro, apenas aviso, mas fique tranquilo pois já cometi o erro de postar coisa parecida, mas quando for colocar logs, por favor coloque entre quote ou code tags, para ficar mais organizado.

Obrigado,
Nathan Paulino Campos

DonCabelo

blz, vlw!

Criado 3 de agosto de 2009
Ultima resposta 3 de ago. de 2009
Respostas 7
Participantes 4