Shahed,
Those two properties, 'etch.home', and 'etch.version' should have been set
to reasonable defaults as long as the ETCH_HOME environment variable is set.
I will look into it on my end to see if can figure out why that is not
happening.
On the .jar files in ANT_HOME/lib, that should not be necessary if your
taskdef statement is referencing the etch-ant-plugin-<version>.jar from
ETCH_HOME/lib.
Those two jar files are the core compiler and the java-binding compiler
plugin, both of those jars need to be on the classpath to generate java code
from .etch files. The ANT task is supposed to automatically add the jars in
ETCH_HOME into the classpath.
The problems your are having and the solution you found are consistent with
the a problem in either the setting/passing of the value of ETCH_HOME
through the ant script, or in the classloader used by the etch-ant-plugin.
I will look into it to see how to make the script a bit more robust.
--
James
On 8/6/08 4:47 PM, "Shahed Moolji" <shahed@me.com> wrote:
I finally managed to solve my issue with running the chat demo
I am using Etch-1.0.0-src as the source code directory and Etch-1.0.0
binary as my ETCH_HOME to compile
The problems were :-
Ant script does not seem to be correctly setting the following ant
properties correctly
etch.home
etch.version
I set them using
<property name="etch.home" value="${env.ETCH_HOME}" />
<property name="etch.version" value="1.0.0" />
ALSO :-
I still have to have 2 jar files in the $ANT_HOME/lib directory for
the etch compiler task to work.
The compiler ant task seems to rely on
etch-java-compiler-1.0.0.jar and
etch-compiler-1.0.0.jar
(Possibly also velocity-dep-1.5.jar)
and cannot seem to pick these up from the taskdef statement
Hope this helps...
Thanks
Shahed
2008/8/6 James Dixson <jadixson@cisco.com>:
By default the ant-task expects to be in ETCH_HOME/lib and the ant-task is
compiled against Etch-1.0 it will not work with Etch-0.96.
I would suggest installing Etch-1.0 binary and then setting your ETCH_HOME
to point to that installation then build the chat example in the Etch-1.0
source distribution.
If you then need to do CUAE 2.5 Beta work, change your ETCH_HOME back to the
0.96 distribution.
--
James
On 8/6/08 11:51 AM, "Shahed Moolji" <shahed@me.com> wrote:
Thanks again James,
I just downloaded the etch 1.0 distribution (src and binary)
I am trying to use the binary dist to build the chat example in the source
dist.
However, I am running into problems :-
Initially I had to copy the compiler task to ANT_HOME/lib to get
to this point.
Without that I got an error saying that ant cound not find the custom
task.
After that,
ant debug gives me the following error :-
C:\PROGRA~1\Etch\etch-1.0.0-src\examples\chat\build.xml:102:
java.lang.NoClassDefFoundError: etch/compiler/EtchMain
I am pretty sure all my environment vars are correct....
Thanks
Shahed.
2008/8/6 James Dixson <jadixson@cisco.com>:
Ah, ok. We have not vetted that version of the chat example in some time.
The best choice for pure-Etch examples is the 1.0 Etch distribution at the
url I provided.
The Etch distribution in Beta2 is pre-1.0. The only examples we vetted for
CUAE Beta2 where the CUAE specific ones.
--
James
On 8/6/08 11:21 AM, "Shahed Moolji" <shahed@me.com> wrote:
Hi James,
I was trying to run the demos from the Etch install, that is part of
the CUAE 2.5 (beta 2) developer tools install package.
Thanks
Shahed
2008/8/6 James Dixson <jadixson@cisco.com>:
Where are you pulling the chat-src from?
We recently published the entire src tree for 1.0 Etch here:
http://developer.cisco.com/web/cuae/wikidocs?src=/wiki/display/CUAE/Etch+Re>>
l
eases
On 8/6/08 11:14 AM, "Shahed Moolji" <shahed@me.com> wrote:
Hi,
I am trying to run the etch chat demo provided in etch-0.96.0
However it seems to be missing a file :-
TestRemoteChatListener.java
Anyone know where I can find this file ?
Thanks
Shahed
_______________________________________________
Etch mailing list
Etch@developer.cisco.com
--
James Dixson
Manager, Software Development
CUAE Engineering, Cisco Systems
(e) jadixson@cisco.com
(p) 512-336-3305
(m) 512-968-2116
--
James Dixson
Manager, Software Development
CUAE Engineering, Cisco Systems
(e) jadixson@cisco.com
(p) 512-336-3305
(m) 512-968-2116
_______________________________________________
Etch mailing list
Etch@developer.cisco.com
--
James Dixson
Manager, Software Development
CUAE Engineering, Cisco Systems
(e) jadixson@cisco.com
(p) 512-336-3305
(m) 512-968-2116
James Dixson
Manager, Software Development
CUAE Engineering, Cisco Systems
(e) jadixson@cisco.com
(p) 512-336-3305
(m) 512-968-2116
_______________________________________________
Etch mailing list
Etch@developer.cisco.com