sou iniciante
e tava começado a mexe com glassfish
desconpato ele
certinho
mais quando vou roda o comando ant -f setup.xml
ele fala que nao reconhece o comando ant
alguem poderia me ajuda
vlw
Ploblema com glassfish
11 Respostas
Microsoft Windows XP [versão 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
G:\Documents and Settings\gui>cd..
G:\Documents and Settings>cd glassfish/glassfish
G:\Documents and Settings\glassfish\glassfish>cd lib/ant/bin
G:\Documents and Settings\glassfish\glassfish\lib\ant\bin>ant -f setup.xml
Unable to locate tools.jar. Expected to find it in G:\Arquivos de programas\Java
\jre6\lib\tools.jar
Buildfile: setup.xml
BUILD FAILED
G:\Documents and Settings\glassfish\glassfish\lib\ant\bin\setup.xml:633: G:\Docu
ments and Settings\glassfish\glassfish\lib\ant\bin\lib\installer-builder not fou
nd.
Total time: 0 seconds
G:\Documents and Settings\glassfish\glassfish\lib\ant\bin>
Olhando a msg de erro nao eh o ant que nao eh encontrado, o problema eh o ant nao achou o diretorio que o JRE esta instalado.
Voce configurou o seu JAVA_HOME ? Vc precisa configurar e setar pro path do java.
me parece que vc ta usando windows, entao vc tem que ir la nas propriedade de sistema->variaveis de ambiente
adicionar nova e nome coloca JAVA_HOME e valor G:\Arquivos de programas\Java<jdk folder>
ps: muda o para o nome correto, o meu eh jdk1.6.0_20, por exemplo. 
Abre uma novo terminal e tentar rodar o ant novamente.
//Daniel
cara ja fiz isso mais mesmo assim nao
esta achando nao sei pq
sera que tem que descopacta o em algum pasta
dentro do java
pq agora acha o java mais nao descombrimir
Microsoft Windows XP [versão 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
G:\Documents and Settings\gui>cd ..
G:\Documents and Settings>cd glassfish/glassfish/lib/ant/bin
G:\Documents and Settings\glassfish\glassfish\lib\ant\bin>ant -f setup.xml
Buildfile: setup.xml
BUILD FAILED
G:\Documents and Settings\glassfish\glassfish\lib\ant\bin\setup.xml:633: G:\Docu
ments and Settings\glassfish\glassfish\lib\ant\bin\lib\installer-builder not fou
nd.
Total time: 0 seconds
G:\Documents and Settings\glassfish\glassfish\lib\ant\bin>
quando tento usa ant fora da pasta bin ele nao acha
ae p ant fala que nao e reconhcido como um comando interno
Microsoft Windows XP [versão 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
G:\Documents and Settings\gui>cd..
G:\Documents and Settings>cd..
G:\>cd glassfish
G:\glassfish>ant -f setup.xml
'ant' não é reconhecido como um comando interno
ou externo, um programa operável ou um arquivo em lotes.
G:\glassfish>
Microsoft Windows XP [versão 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. G:\Documents and Settings\gui>cd.. G:\Documents and Settings>cd.. G:\>cd glassfish G:\glassfish>ant -f setup.xml 'ant' não é reconhecido como um comando interno ou externo, um programa operável ou um arquivo em lotes. G:\glassfish>
ok, entao vc tem que adicionar o ant no PATH
O ant não esta no seu PATH.
galeria sangue bom
ae como adicionor
ant no path ???
no path do java ?? +
bem fui la no path e coloquei o caminho da lib,ant,bin
de ate que certo mais aconteceu outro erro
Microsoft Windows XP [versão 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
G:\Documents and Settings\gui>cd..
G:\Documents and Settings>cd glassfiah
O sistema não pode encontrar o caminho especificado.
G:\Documents and Settings>cd glassfish
G:\Documents and Settings\glassfish>cd glassfish
G:\Documents and Settings\glassfish\glassfish>ant -f setup.xml
Unable to locate tools.jar. Expected to find it in G:\Arquivos de programas\Java
\jre6\lib\tools.jar
Buildfile: setup.xml
get.java.home:
setup.init:
tools.init.windows:
tools.init.solaris:
tools.init.solaris-sparc:
tools.init.solaris-x86:
tools.init.linux:
tools.init.darwin:
check-osforbuildjarinstaller:
check-installer-compatibility:
installer-message:
all:
get.java.home:
setup.init:
check-java:
get.java.home:
setup.init:
validate-java:
[echo] Current Java Version 1.6.0_20
BUILD FAILED
G:\Documents and Settings\glassfish\glassfish\setup.xml:161: The following error
occurred while executing this line:
G:\Documents and Settings\glassfish\glassfish\setup.xml:141: The following error
occurred while executing this line:
G:\Documents and Settings\glassfish\glassfish\setup.xml:137: Please set java.hom
e to a JDK installation
Total time: 0 seconds
G:\Documents and Settings\glassfish\glassfish>
ae o que devo fazer ??
ploblema resolvi vlw gente
^^
