1
resposta

Não consigo executar o programa leiloes

é apresentado o erro:

C:\Users\deiaj\Downloads\leiloes\leiloes>ant jetty.run
Buildfile: C:\Users\deiaj\Downloads\leiloes\leiloes\build.xml

resolve:
  [taskdef] Could not load definitions from resource org/apache/ivy/ant/antlib.xml. It could not be found.

BUILD FAILED
C:\Users\deiaj\Downloads\leiloes\leiloes\build.xml:26: Problem: failed to create task or type antlib:org.apache.ivy.ant:retrieve
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
        -C:\apache-ant-1.9.15\bin\..\lib
        -C:\Users\deiaj\.ant\lib
        -a directory added on the command line with the -lib argument


Total time: 0 seconds
1 resposta

Parece que o projeto não está achando a biblioteca Apache IVY. Dentro da pasta leiloes tem um ivy-2.2.0.jar?

Faça download do jar do ivy aqui: http://ant.apache.org/ivy/download.cgi Cole o jar dentro da pasta leiloes.

Pode ser algum problema com a instação do Ant na sua máquina também. Tutorial de como fazer a instalação: https://loiane.com/2015/03/instalando-o-apache-ant-e-configurando-a-variavel-de-ambiente-ant_home-no-windows/

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software