I can't compile the converter tutorial example in J2EE

Hi,

I was wondering if someone could help me out with this.

I followed the instructions from the tutorial, but still can't use ant to compile the convert.

The following is the error output.

Many thanks.

C:\temp\j2ee_examples\j2eetutorial\examples\src>ant converter

Searching for build.xml ...

Buildfile: C:\temp\j2ee_examples\j2eetutorial\examples\src\build.xml

init:

BUILD FAILED

C:\temp\j2ee_examples\j2eetutorial\examples\src\build.xml:18: Class org.apache.t

ools.ant.taskdefs.Property doesn't support the "environment" attribute

Total time: 0 seconds

[653 byte] By [adamchan2000] at [2008-1-13]
# 1
Look at the 18th line in the Build.xml file. You must change the text "<property environment="myenv" />" for this one: "<property name="environment" value=="myenv" />".
jodamoju at 2007-7-2 > top of java,Developer Tools,Java Compiler...
# 2

When you compile through J2EE it should give no apache type errors. You must of included apache xml cocoon jar files in the CLASSPATH as well later put the j2ee.jar. However j2ee.jar has XML libraries, no need to include other thrid party xml libaries.

Cheers

Abraham Khalil

akhalil100 at 2007-7-2 > top of java,Developer Tools,Java Compiler...
# 3

When you compile through J2EE it should give no apache type errors. You must of included apache xml cocoon jar files in the CLASSPATH as well later put the j2ee.jar. However j2ee.jar has XML libraries, no need to include other thrid party xml libaries.

Other words its pick your thrid party xml jar files first and using that instead of your j2ee.jar xml libaries.

Cheers

Abraham Khalil

akhalil100 at 2007-7-2 > top of java,Developer Tools,Java Compiler...
# 4

When you compile through J2EE it should give no apache type errors. You must of included apache xml cocoon jar files in the CLASSPATH as well later put the j2ee.jar. However j2ee.jar has XML libraries, no need to include other thrid party xml libaries.

Other words its picking your thrid party xml jar files first and using that instead of your j2ee.jar xml libaries.

Cheers

Abraham Khalil

akhalil100 at 2007-7-2 > top of java,Developer Tools,Java Compiler...
# 5
back and forward problem. Read the last article. I mean the second last article :)
akhalil100 at 2007-7-2 > top of java,Developer Tools,Java Compiler...