Re: [tcljava-user] Using TCL packages in TCL Java
Brought to you by:
mdejong
From: Perry G. <pg...@io...> - 2011-06-29 17:18:58
|
Excellent, I think this is what I am looking for. To confirm does this let you call Ixia TCL commands from Java and/or vice versa? Have you had any problems with this setup? --Perry On 06/29/2011 01:15 PM, Ross, Bill wrote: > Tclblend is called in using "package require" like any standard tcl module. > As far as I know the Ixia tcl stuff does not need to be compiled and I think it is self sufficient, meaning no other code is required. > > Here is the code I use for loading the packages and setting some variables > > ###TCL Code to add packages: > package require IxTclHal; > package require java; > set env(CLASSPATH) "/home/bin/jars/xxx.jar"; > > ### Ixia environment variables > set env(TCL_LIB_HOME) "/opt/tcl_Library"; > set env(IXIA_VERSION) "5.00.30037"; > set env(IXIA_HOME) $env(TCL_LIB_HOME)/lib/ixia; > set env(IXIA_LIB) $env(IXIA_HOME)/lib; > set env(IXIA_RESULTS_DIR) $env(IXIA_HOME); > set env(IXIA_LOGS_DIR) $env(IXIA_HOME); > set env(IXIA_TCL_DIR) $env(IXIA_LIB); > set env(IXIA_SAMPLES_DIR) $env(IXIA_LIB); > set env(IXTCLHAL_LIBRARY) $env(IXIA_LIB)/ixTcl1.0; > > > -----Original Message----- > From: Perry Gagne [mailto:pg...@io...] > Sent: Wednesday, June 29, 2011 12:44 PM > To: A list for users of tcljava > Subject: Re: [tcljava-user] Using TCL packages in TCL Java > > Correction, I mean for using TclBlend to interface with TCL and C code. > > --Perry > > On 06/29/2011 12:42 PM, Perry Gagne wrote: >> Is there any documentation or tutorials for stuff like this, (using the >> C libraries in TCL). I am not very familiar with JNI . >> >> --Perry >> >> On 06/29/2011 12:09 PM, Johannes13 wrote: >>> [load] on Jacl can not load c libraries. So, if one of your required >>> packages need a lib written in C, you should use TclBlend. >>> >>> --Johannes >>> ----- Original Message ----- >>> From: "Perry Gagne"<pg...@io...> >>> To: "A list for users of tcljava"<tcl...@li...> >>> Sent: Wednesday, June 29, 2011 5:44 PM >>> Subject: Re: [tcljava-user] Using TCL packages in TCL Java >>> >>> >>>> We have it running using regular TCL sh, I was curious if we could >>>> interact with it in our scripts that are interpreted by Jacl or somehow >>>> interfact with it via Java >>>> --Perry >>>> >>>> On 06/29/2011 11:35 AM, Ross, Bill wrote: >>>>> We use the Ixia TCL automation library. >>>>> It uses pure TCL. >>>>> You should not have to use any java, either tclblend or jacl. >>>>> Your Ixia support people should be able to help you get it running. >>>>> There are a few environment variables that need to be set. >>>>> >>>>> -----Original Message----- >>>>> From: Perry Gagne [mailto:pg...@io...] >>>>> Sent: Wednesday, June 29, 2011 9:27 AM >>>>> To: tcl...@li... >>>>> Subject: [tcljava-user] Using TCL packages in TCL Java >>>>> >>>>> Hello, >>>>> >>>>> I am a little new too TCL so I was wondering if someone could help me >>>>> out and see if this was something that could be done. >>>>> >>>>> My group uses IXIA's TCL Automation library: >>>>> >>>>> http://www.ixiacom.com/products/display?skey=tcl_api >>>>> >>>>> We were wondering if it could be used in a project we have that uses >>>>> TCL/Java. From my understanding this library is C based. Currently I >>>>> believe we strictly use Jacl, from some reading online (mostly this >>>>> post): >>>>> >>>>> http://tech.groups.yahoo.com/group/tcljava/message/412 >>>>> >>>>> I found that in order to do this we need to use TCL Blend. >>>>> >>>>> Does this sound right? Has anyone worked with IXIA automation library >>>>> and done a similar thing? >>>>> >>>>> Thanks for the help >>>>> --Perry >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> All of the data generated in your IT infrastructure is seriously >>>>> valuable. >>>>> Why? It contains a definitive record of application performance, security >>>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>>> sense of it. IT sense. And common sense. >>>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>>> _______________________________________________ >>>>> tcljava-user mailing list >>>>> tcl...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> All of the data generated in your IT infrastructure is seriously >>>>> valuable. >>>>> Why? It contains a definitive record of application performance, security >>>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>>> sense of it. IT sense. And common sense. >>>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>>> _______________________________________________ >>>>> tcljava-user mailing list >>>>> tcl...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >>>> >>>> ------------------------------------------------------------------------------ >>>> All of the data generated in your IT infrastructure is seriously valuable. >>>> Why? It contains a definitive record of application performance, security >>>> threats, fraudulent activity, and more. Splunk takes this data and makes >>>> sense of it. IT sense. And common sense. >>>> http://p.sf.net/sfu/splunk-d2d-c2 >>>> _______________________________________________ >>>> tcljava-user mailing list >>>> tcl...@li... >>>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >>> >>> >>> ------------------------------------------------------------------------------ >>> All of the data generated in your IT infrastructure is seriously valuable. >>> Why? It contains a definitive record of application performance, security >>> threats, fraudulent activity, and more. Splunk takes this data and makes >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2d-c2 >>> _______________________________________________ >>> tcljava-user mailing list >>> tcl...@li... >>> https://lists.sourceforge.net/lists/listinfo/tcljava-user >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> tcljava-user mailing list >> tcl...@li... >> https://lists.sourceforge.net/lists/listinfo/tcljava-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user |