Error while running AntNet in ns2.35

Aradhi Life <[email protected]> Thu, 2 Jun 2016 11:40:10 +0530
Newsgroups gmane.network.simulator.isi
Message-ID <CAHnEF15xsEZ1RG-qKXr58KZJyZ2=HvhRF5JxCUSGTHJBtz4K9w@mail.gmail.com>
Hello,

I am new to ns2, and i have installed ns2.35 on ubuntu 14.0.4. After so
many days i successfully installed ns2 and some example scripts are running
successfully. I am trying to run "Antnet" ( its code i found online ) on
ns2.35, but i'm getting some errors which i am not able to solve.

The error is:
--------------------------------------------------------------------------------------
invalid command name "Agent/Antnet"
    while executing
"Agent/Antnet create _o386 0"
    invoked from within
"catch "$className create $o $args" msg"
    invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
    (procedure "new" line 3)
    invoked from within
"new Agent/Antnet $i"
    ("for" body line 2)
    invoked from within
"for {set i 0} {$i < $sz} {incr i} {
    set   nn($i)  [ new Agent/Antnet $i]
}"
    (file "antnet2.tcl" line 42)
----------------------------------------------------------------------------------------------


I have checked Agent antnet is is added in *ns-packet.tcl  *and

*ns-lib.tcl .*
I am attaching the respective tcl file which got me this error.
Please help me in this. Any help would be appreciated. Thankyou so much for
your time.
antnet2.tcl (application/x-tcl, 4.4 KB) - not displayed