Thread: [tcljava-user] Loading native tcl Library
Brought to you by:
mdejong
From: Jerry S. <je...@vs...> - 2009-09-09 19:09:32
|
I found this email thread, and wonder if this is still true with Jacl 1.4.1. I could run the tcl script from Jacl shell, however I can't do that from my Java program. It will cause exception when this command is encounter: load abc.dll struct Does this mean I have to switch to Tcl Blend ? Thanks. Hi, > > I have a tcl script that performs the following statement: > load tclx83.dll Tclx > > When I run my tcl script, using tcl84 shell, the tcl script works fine. > > I want to use jacl to run my tcl script from my java application. You can't load native Tcl libs into a Jacl application. If you want to do that, you will need to use Tcl Blend not Jacl. Tcl Blend 1.3 supports loading both Tcl and Tcl Blend into an existing JVM. Mo DeJong Red Hat Inc Jerry Sugiarto QA Engineer VSS Monitoring, Inc. 38 Adrian Court Burlingame, CA 94010 + 1.650.697.8770 t + 1.650.697.8779 f http://www.vssmonitoring.com l Silicon Valley, USA l Tokyo, Japan l Beijing, China V SS Monitoring's Distributed Traffic Capture SystemsT fundamentally improve price-performance and network analyzer efficiency, as well as increase network visibility and reduce response times. Only VSS Monitoring offers a single vendor total traffic capture solution, encompassing small deployments requiring basic network taps, through large, complex deployments with multiple monitoring solutions that become highly leveraged through its unique distributed systems. |
From: Patrick F. <fin...@gm...> - 2009-09-09 23:11:45
|
On Wednesday 09 September 2009 19:54:32 Jerry Sugiarto wrote: > I found this email thread, and wonder if this is still true with Jacl > 1.4.1. > > I could run the tcl script from Jacl shell, however I can't do that from > > my Java program. It will cause exception when this command is encounter: > > load abc.dll struct > > > > Does this mean I have to switch to Tcl Blend ? > > Thanks. > > > > > > Hi, > > > I have a tcl script that performs the following statement: > > > > load tclx83.dll Tclx > > > > > > > > When I run my tcl script, using tcl84 shell, the tcl script works fine. > > > > > > > > I want to use jacl to run my tcl script from my java application. > > You can't load native Tcl libs into a Jacl application. If you > > want to do that, you will need to use Tcl Blend not Jacl. > > Tcl Blend 1.3 supports loading both Tcl and Tcl Blend into > > an existing JVM. > > > > Mo DeJong > > Red Hat Inc > > > > > > Jerry Sugiarto > > QA Engineer > > VSS Monitoring, Inc. > > 38 Adrian Court > > Burlingame, CA 94010 > > > > + 1.650.697.8770 t > > + 1.650.697.8779 f > > > > http://www.vssmonitoring.com l Silicon Valley, USA l Tokyo, Japan l > Beijing, China > > V SS Monitoring's Distributed Traffic Capture SystemsT fundamentally > improve price-performance and network analyzer efficiency, as well as > increase network visibility and reduce response times. Only VSS Monitoring > offers a single vendor total traffic capture solution, encompassing small > deployments requiring basic network taps, through large, complex > deployments with multiple monitoring solutions that become highly leveraged > through its unique distributed systems. The answer is yes. Jacl is written in Java. TclBlend is written in C. A java runtime will not execute C dlls natively. The Java runtime needs to load a C runtime(TclBlend) which can then call a C dll. |
From: Jerry S. <je...@vs...> - 2009-09-14 23:15:04
|
After I switched to Tcl Blend, I could run tcl script successfully from my Java program. However, after the executing tcl script, this error message pops up: Title of the window: java.exe - Application Error The instruction at "0x6D801115" referenced memory at "0x00000144". The memory could not be written. Click on OK to terminate the program. Does anybody have idea why I have this error ? Thanks. From: Patrick Finnegan [mailto:fin...@gm...] Sent: Wednesday, September 09, 2009 4:11 PM To: tcl...@li... Cc: Jerry Sugiarto Subject: Re: [tcljava-user] Loading native tcl Library On Wednesday 09 September 2009 19:54:32 Jerry Sugiarto wrote: > I found this email thread, and wonder if this is still true with Jacl > 1.4.1. > > I could run the tcl script from Jacl shell, however I can't do that from > > my Java program. It will cause exception when this command is encounter: > > load abc.dll struct > > > > Does this mean I have to switch to Tcl Blend ? > > Thanks. > > > > > > Hi, > > > I have a tcl script that performs the following statement: > > > > load tclx83.dll Tclx > > > > > > > > When I run my tcl script, using tcl84 shell, the tcl script works fine. > > > > > > > > I want to use jacl to run my tcl script from my java application. > > You can't load native Tcl libs into a Jacl application. If you > > want to do that, you will need to use Tcl Blend not Jacl. > > Tcl Blend 1.3 supports loading both Tcl and Tcl Blend into > > an existing JVM. > > > > Mo DeJong > > Red Hat Inc > > > > > > Jerry Sugiarto > > QA Engineer > > VSS Monitoring, Inc. > > 38 Adrian Court > > Burlingame, CA 94010 > > > > + 1.650.697.8770 t > > + 1.650.697.8779 f > > > > http://www.vssmonitoring.com l Silicon Valley, USA l Tokyo, Japan l > Beijing, China > > V SS Monitoring's Distributed Traffic Capture SystemsT fundamentally > improve price-performance and network analyzer efficiency, as well as > increase network visibility and reduce response times. Only VSS Monitoring > offers a single vendor total traffic capture solution, encompassing small > deployments requiring basic network taps, through large, complex > deployments with multiple monitoring solutions that become highly leveraged > through its unique distributed systems. The answer is yes. Jacl is written in Java. TclBlend is written in C. A java runtime will not execute C dlls natively. The Java runtime needs to load a C runtime(TclBlend) which can then call a C dll. |