Re: [tcljava-user] Help Required on Loading packages in tcljava
Brought to you by:
mdejong
|
From: Mo D. <mo...@mo...> - 2007-05-09 18:06:36
|
shrisha karanth wrote:
> Hello All,
>
> Recently i am involved in new project which required to implement the
> certain function using java and tcl.During this i faced some problem
> in the code.
>
>
> ========================
>
> *
>
> import
>
> * tcl.lang.*; *
>
> public
>
> * *class* Ixia *implements* Testset{ *public* *void* initIxia()
>
> {
>
> Interp interp=
>
> *new* Interp(); String scriptFileName="c:\\TCAS\\cgi-bin\\lib\\ethr.tcl";
You need to either tell the package system how to load a package named
"Ixia" or just
declare the package as loaded after sourcing ethr.tcl.
You could do something like:
package ifneeded Ixia 1.0 {source c:/TCAS/cgi-bin/lib/ethr.tcl/ethr.tcl
; package provide Ixia 1.0}
Take a look at the package command manual and you should be able to
figure it out.
http://www.tcl.tk/man/tcl8.4/TclCmd/package.htm
cheers
Mo DeJong
|