• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

asant problem

 
Pradyut Bhattacharya
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
whenever i give "asant build" command in the command line i get the message



the required contents in the targets.xml file are: -



i tried a lot on the line "<javac srcdir="src" destdir="${build}" >"
on the destdir parameter but on no good results

any help
thanks
Pradyut
 
Tony Morris
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The ${C:/Sun/AppServer} property has not been set.
Use ant -v
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm moving this to the Ant forum, because I believe Pradyut means "ant build" not "asant build".

Please post your replies there, thanks!
 
Sarah Rosie
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the J2EE tutorial:

"To run the asant scripts, you must set common build properties in the file <INSTALL>/j2eetutorial14/examples/common/build.properties as follows:

Set the j2ee.home property to the location of your Application Server installation. The build process uses the j2ee.home property to include the libraries in <J2EE_HOME>/lib/ in the classpath. All examples that run on the Application Server include the J2EE library archive--<J2EE_HOME>/lib/j2ee.jar--in the build classpath. Some examples use additional libraries in <J2EE_HOME>/lib/ and <J2EE_HOME>/lib/endorsed/; the required libraries are enumerated in the individual technology chapters. <J2EE_HOME> refers to the directory where you have installed the Application Server or the J2EE 1.4 SDK.

--------------------------------------------------------------------------------

Note: On Windows, you must escape any backslashes in the j2ee.home property with another backslash or use forward slashes as a path separator. So, if your Application Server installation is C:\Sun\AppServer, you must set j2ee.home as follows:

j2ee.home = C:\\Sun\\AppServer

or

j2ee.home=C:/Sun/AppServer
"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic