Re: [tcljava-user] invalid command name "load" when eval tcl in java
Brought to you by:
mdejong
|
From: wang d. <ru...@ya...> - 2007-05-17 08:22:22
|
If I really need to load .dll files, is there any solutions?
Any help or suggestions?
----- Original Message ----
From: wang dada <ru...@ya...>
To: A list for users of tcljava <tcl...@li...>
Sent: Thursday, May 17, 2007 2:18:00 PM
Subject: Re: [tcljava-user] invalid command name "load" when eval tcl in java
Thanks.
I have a tcl script. And in the code there is "load xxx.dll". The requirement now is to retrive data from the tcl script in a java program. So I cannot use Tclblend, cause it is used to write java code in Tcl, right?
I cannot modify the tcl script. In this situation, what should I do? Is there any solution?
Best regards,
Joy
----- Original Message ----
From: Mo DeJong <mo...@mo...>
To: A list for users of tcljava <tcl...@li...>
Sent: Thursday, May 17, 2007 1:46:47 PM
Subject: Re: [tcljava-user] invalid command name "load" when eval tcl in java
wang dada wrote:
> Hi,
> Now I am writing a java plugin in eclipse to try to get data from
> a Tcl API.
> My code is as following:
> *Interp interp;
> interp = new Interp();
> try{
> interp.eval("package require XXXX");
> interp.eval("::XXXX::YYYY");
> *
> * // TclObject[] result = TclList.getElements(interp,
> interp.getResult());
>
> }
> catch(TclException ex){*
> * ..................................
> }
> finally{
> interp.dispose();
> }*
> The error is "invalid command name "load"",
> there is "load [file join $dir zz.dll zz" in the tcl script of XXXX,
> the path of dll file is right. Why the dll cannot be loaded?
Jacl does not support the load command since it only works C dlls. You
could use Tcl Blend though.
Mo
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
tcljava-user mailing list
tcl...@li...
https://lists.sourceforge.net/lists/listinfo/tcljava-user
Boardwalk for $500? In 2007? Ha!
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
tcljava-user mailing list
tcl...@li...
https://lists.sourceforge.net/lists/listinfo/tcljava-user
____________________________________________________________________________________Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
http://smallbusiness.yahoo.com/webhosting |