help when i ant with hello2 in javaee tutorial5 examples?::::

in \javaeetutorial5\examples\web\hello2

when i ant show below :

uild\web\WEB-INF\classes

BUILD FAILED

D:\javaeetutorial5\examples\bp-project\command-line-ant-tasks.xml:92: c:\Sun\App

Server not found.

Total time: 2 seconds

D:\javaeetutorial5\examples\web\hello2>

why this ?

[331 byte] By [guagaua] at [2007-11-26 18:53:25]
# 1

well,I figure it out just right now.

I assume you have done that:

1.Java SDK has been installed in the default path

C:\Program Files\Java\jdk1.6.0

2.Java EE has been installed in the default path

C:\Sun\SDK\

3.JavaEETutorial5's examples in this path

C:\JavaEETutorial5\examples

well,all needed environment variables have been added automatically

you must encounter this problem when you use "asant" command

that's because there is a parameter which don't set correctly

1.Open the directory:C:\JavaEETutorial5\examples\bp-project

2.copy "build.properties.sample" and rename it to "build.properties"

3.Open the file with "Ultraedit"

for this file is not DOS format,maybe not displayed if you use NOTEPAD

4.find the line "javaee.home=c:\Sun\App"

5. change the parameter "javaee.home" with your JAVA EE install path

my path is "C:\Sun\SDK\"

so my parameter is:

javaee.home=C:\Sun\\SDK

notice that : I have used double \ between "Sun" and "SDK"

ALL OF THAT has been detailed in the [The Java EE 5 Tutorial]

you can find it in http://java.sun.com/javaee/5/docs/tutorial/doc/index.html

in the Chapter Zero [About This Tutorial]

There is paragraph named [Building the Examples ] which details all you need.

Orsona at 2007-7-9 6:27:26 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...