Forum Stats

  • 3,816,065 Users
  • 2,259,136 Discussions
  • 7,893,382 Comments

Discussions

"lib_external" does not exist - Error in ant build

803239
803239 Member Posts: 9
Can anybody, tell me please what is the reason I am getting the error lib_external does not exist, when trying to build a simple struts web-application to create a war file.

The full error message is given below:
===========================================================
C:\Basic_Struts2_Ant>ant
Buildfile: C:\Basic_Struts2_Ant\build.xml

clean:
[delete] Deleting directory C:\Basic_Struts2_Ant\dist
[delete] Deleting directory C:\Basic_Struts2_Ant\build

init:
[mkdir] Created dir: C:\Basic_Struts2_Ant\build

compile:
[mkdir] Created dir: C:\Basic_Struts2_Ant\build\WEB-INF\classes
[javac] C:\Basic_Struts2_Ant\build.xml:69: warning: 'includeantruntime' was not set, defaulting
to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 2 source files to C:\Basic_Struts2_Ant\build\WEB-INF\classes

BUILD FAILED
C:\Basic_Struts2_Ant\build.xml:69: C:\Basic_Struts2_Ant\lib_external does not exist.

Total time: 2 seconds
C:\Basic_Struts2_Ant>
===============================================================

can someone give me the clue faced the same problem earlier.

Thanks.
Sujoy

Answers

  • 805738
    805738 Member Posts: 1
    There are two errors in the log

    For the first error
    Open the build.xml file and add a new value inside the javac tag as
    <javac........includeantruntime="false"

    For the second error
    Create a folder name lib_external inside the Basic_Struts2_Ant folder
This discussion has been closed.