• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

New JACL 1.4.0 release.

 
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic