• Post Reply Bookmark Topic Watch Topic
  • New Topic

New JACL 1.4.0 release.  RSS feed

Patrick Finnegan
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JACL - Java Command Language.


Jacl is a self-contained implementation of a Tcl interpreter written entirely in Java. Jacl is primarily designed for use by non Java programmers who want to run procedural non object orientated code in the JVM. Typical implementations are administrative interfaces to Java applications(IBM WebSphere) and Java application regression tests.

NOTE: None of the non core Tcl extensions have been ported to JACL so non core packages such as Expect, HTTP, SOAP etc are not available in JACL.

Installation Instructions.

1.Download JACL

Download the JACL 1.4.0 jaclBinary140.zip binary from

2.Extract the binary.

Extract jaclBinary140.zip to a local directory e.g

3.Install the jar files.

JACL enable the Java runtime by copying the JACL jar files from the extract
directory to the ext directory of the java install. The JACL jar files will by dynamically loaded by the JVM at runtime.

E.G copy the following jar files from
C:\Downloads\jacl\jaclBinary140\jacl140\lib\tcljava1.4.0 to C:\Program

itcl.jar jacl.jar janino.jar tcljava.jar tjc.jar

4.Start an interactive Jacl shell.

C:\>java tcl.lang.Shell

# display the system time/date.

% clock format [ clock seconds ]
Sat Jan 06 12:07:53 GMT 2007

# enable Java commands.

% package require java

# display current directory.

% puts [ java::call System getProperty user.dir ]

# get local ip address.

% java::import java.net.InetAddress

% puts "My IP Address is: [ [ java::call InetAddress getLocalHost ] getHostAddress ] "
My IP Address is:

5.Run JACL in batch mode.

Place the above commands (without the leading % shell delimiter)in a text file then run "java tcl.lang.Shell yourScript.tcl" from the command line.


C:\java tcl.lang.Shell quickTest.tcl

Wed Jan 03 10:43:06 GMT 2007
C:\Program Files\Java\j2re1.4.2_06\bin
My IP Address is:

Use the java classpath parameter to specify the location of application class files.

E.G C:\>java -classpath c:/myApplication.jar tcl.lang.Shell


Sourceforge website: http://tcljava.sourceforge.net/docs/website/index.html
Sourceforge repository:http://sourceforge.net/projects/tcljava/
Examples: http://aspn.activestate.com/ASPN/Cookbook/Tcl?kwd=TclBlend
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!