This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Asant build J2EE Tutorial Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Asant build J2EE Tutorial" Watch "Asant build J2EE Tutorial" New topic
Author

Asant build J2EE Tutorial

Farooque Azam
Greenhorn

Joined: Jan 18, 2006
Posts: 1
I have installed Sun application Server on (F:\Sun\AppServer) and the J2EE tutorial on (F:\j2eetutorial14) in Windows XP with default settings.

I have also added the paths to build.properties file at (F:\j2eetutorial14\examples\common) as follows:

j2ee.home=F:/Sun/AppServer
j2ee.tutorial.home=F:/j2eetutorial14
sunone.home=${j2ee.home}...........

However, once I execute (asant build) command from the home directory of hello1 i.e.(F:\j2eetutorial14\examples\web\hello1) in command windows, it gives following message:
-----------------------------------------------
Buildfile: build.xml

j2ee-home-test:

BUILD FAILED
F:\j2eetutorial14\examples\common\targets.xml:10: The j2ee.home property is not
properly set in <INSTALL>/j2eetutorial14/examples/common/build.properties.

Set the j2ee.home property to the location of your Application Server installation.

On Windows, you must escape any backslashes in the j2ee.home property with anoth
er 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

j2ee.home is currently set to:

--------------------------------------------------------
I am not able to figure it out that what is wrong?
Any hint? thanks

Regrds---Farooq
[ January 23, 2006: Message edited by: Bear Bibeault ]
Anand T K
Greenhorn

Joined: Jan 17, 2006
Posts: 2
I had a similar problem and I reinstalled the app server under c:\appsrvr
and everything looks good, please try

The limitation is in Win2K. Win2K only allows 256 characters in the command input line.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Asant build J2EE Tutorial
 
Similar Threads
The asant tool
asant build problem
asant problem
"JAVA_HOME/bin"... Directory help
Can't ant build a component due to ?faulty? build.xml file.