Saket Jha wrote:
> Hi,
>
> To give a brief background, I am planning to build an application
> based on WSDL-Java technology. I require to blend this with Tcl as all
> my automation scripts are in Tcl.
>
> Basically, I have a simple requirement:
>
> I want to be able to use TclBlend from ActiveState Tcl on Windows.
>
Saket, I don't think it is such a good idea, but you should be able to
make it work if you are really brave. The main thing you need to do is
check that the Windows version of ActiveState Tcl is being built with
thread support enabled. I think that thread support is enabled in the
Windows build of ActiveState Tcl, but I don't remember off the top of my
head. Then, you need to build a Tcl binary from the same release
number that the ActiveState Tcl binary is built from. This is important
because unlike other Tcl extensions, Tcl Blend needs to link to a specific
Tcl dll and it needs to be exactly the same binary layout as the version
it was compiled with.
So, what I suggest is that you get a Windows build of Tcl, Thread, and
TclBlend working in your own install location first. Then, copy the
bin/tclblend.dll, and the library/tcljava1.4.1 files over to the install
location where your ActiveState Tcl is. At that point, you will need to
setup the env vars or copy over the jtclsh.bat script and setup the PATH
values to work for your new install location. That is needed so
that Tcl can load the Java shared libs at runtime. With the env vars
setup properly, and the Tcl Blend library files copied to the correct
location, you should be able to run "package require java" in the
ActiveState Tcl shell. Just make sure you get the PATH settings right
or it won't be able to find the Java shared libs.
Tcl Blend build instructions under Mingw are located here:
http://wiki.tcl.tk/9993
Mo DeJong
|