aspose file tools*
The moose likes Other Languages and the fly likes New JACL 1.4.0 release. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Languages » Other Languages
Bookmark "New JACL 1.4.0 release." Watch "New JACL 1.4.0 release." New topic
Author

New JACL 1.4.0 release.

Patrick Finnegan
Ranch Hand

Joined: Mar 05, 2002
Posts: 179
JACL - Java Command Language.

1.Usage.

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
http://sourceforge.net/projects/tcljava/

2.Extract the binary.

Extract jaclBinary140.zip to a local directory e.g
C:\Downloads\jacl\jaclBinary140\jacl140\lib\tcljava1.4.0.

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
Files\Java\jre1.5.0_10\lib\ext.

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
1.4.0

# display current directory.

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

# get local ip address.

% java::import java.net.InetAddress

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

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.

E.G.

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: 123.45.67.89

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

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

7.Resources.

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: New JACL 1.4.0 release.