Tcl/Java

Tcl/Java

Tcl/Java is a project to bridge Tcl and Java. This means that you can call Tcl code from a Java program, or Java code from a Tcl program.

Tcl/Java consists of two packages, Jacl and Tcl Blend.

Jacl

Jacl is a Tcl interpreter that is written in Java. This is especially useful for Java people wanting to call Tcl code.

Jacl: run tcl within the JVM.
Tclblend: call Java class libraries from the C runtime using JNI and an embedded JVM.

The Tcl/Java project's goal is to make integrating the Java platform and the Tcl scripting language as easy as possible. The project actually consists of two distinct packages, called Tcl Blend and Jacl. It is important to understand what each package provides and in what situations one might choose to use Jacl or Tcl Blend.

Jacl is a self-contained implementation of a Tcl interpreter, written entirely in Java. Jacl also includes features that facilitate communication between a Java interpreter and a Tcl interpreter. Jacl is typically used to incorporate scripting functionality into an existing Java application. Jacl is the ideal solution for users that want to add Tcl scripting to a Java application, but don't want to deal with the complexities of native code that come with Tcl Blend.

Tcl Blend is a Tcl extension that makes use of JNI to facilitate communication between a Java interpreter and a Tcl interpreter. Tcl Blend is typically used to load a Java interpreter into an existing Tcl process, so that functionality implemented in Java can be accessed via Tcl. One can also load Tcl Blend and Tcl into a Java process, which is a great way to add scripting functionality to an existing Java application. Because Tcl Blend is a normal Tcl extension, one can use it with other popular Tcl extensions like Tk, Expect, and Itcl.

Tcl Blend and Jacl define both a Tcl API and a Java API that make it easy to call Java code from Tcl or call Tcl code from Java. For example, one could allocate a Java object in a Tcl script and interactively invoke Java methods on the object. It is also easy to use the supplied API to evaluate a Tcl procedure from a Java method or implement Tcl procudures in Java. The flexible API and wealth of implementation options provided by the Tcl/Java project make integrating Tcl and Java easy.

Website: http://tcljava.sourceforge.net/docs/website/index.html
Examples: http://aspn.activestate.com/ASPN/Cookbook/Tcl?kwd=TclBlend

Tcl Blend

Tcl Blend is a Tcl extension that bridges between a Tcl interpreter and a Java interpreter. This is especially useful for Tcl people wanting to call Java code.

ee also

* Tcl
* Java Tcl
* Java
* List of Java scripting languages
* C++/Tcl
* Tcllib
* Itcl

External links

* [http://tcljava.sourceforge.net/docs/website/ Tcl/Java home page]


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Tcl — Tool Command Language Desarrollador(es) Tcl Core Team[1] …   Wikipedia Español

  • Java Tcl — Infobox Software name = Tcl/Java caption = developer = latest release version = 1.4.1 latest release date = release date|2008|04|04 latest preview version = latest preview date = operating system = Cross platform platform = Java Virtual Machine… …   Wikipedia

  • Tcl — Запрос «TCL» перенаправляется сюда; о минидистрибутиве Linux см. Tiny Core Linux. Tcl Семантика: императивный …   Википедия

  • Java Command Language — Jacl Tcl/Java Aktuelle Version 1.4.1 (4. April 2008) Betriebssystem plattformunabhängig Programmier­sprache Java, Tcl Lizenz BSD Lizenz …   Deutsch Wikipedia

  • TCL — Skriptsprache mit Bytecode Interpreter Basisdaten Paradigmen: imperativ, funktional …   Deutsch Wikipedia

  • Tcl/Tk — Tcl Skriptsprache mit Bytecode Interpreter Basisdaten Paradigmen: imperativ, funktional …   Deutsch Wikipedia

  • Tcl — Skriptsprache mit Bytecode Interpreter Basisdaten Paradigmen: imperativ, funktional, generativ …   Deutsch Wikipedia

  • TCL — Семантика: императивный, скриптовый Тип исполнения: интерпретатор Появился в: 1988 г. Автор(ы): Джон Остераут Последняя версия: 8.5.7 / 15 апреля 2009 …   Википедия

  • Java (informatique) — Java (langage) Pour les articles homonymes, voir Java.  Ne doit pas être confondu avec JavaScript …   Wikipédia en Français

  • Java (langage de programmation) — Java (langage) Pour les articles homonymes, voir Java.  Ne doit pas être confondu avec JavaScript …   Wikipédia en Français

Share the article and excerpts

Direct link
https://en-academic.com/dic.nsf/enwiki/1175297 Do a right-click on the link above
and select “Copy Link”