"Fossies" - the Fresh Open Source Software Archive

Member "jacl1.4.1/demos/simplepkg/README" (8 May 1999, 918 Bytes) of archive /linux/misc/jacl1.4.1.tar.gz:

As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

README RCS: @(#) $Id: README,v 1.2 1999/05/08 23:27:15 dejong Exp $


  This demo shows how to write a simple Tcl extension in Java.  
  The SimpleExtension contains one Tcl command, "sayhello",
  which returns the string "Hello World!" when invoked.

Running the Demo

 To see the demo in action start out by typing "make demos" in the
 directory you compiled in. This will create a demos subdirectory
 in the directory you compiled in. At this point you will want to
 start up a java enabled shell. The easiest way to do this is to
 type "make shell" and then cd to the demos/simplepkg directory
 that was created inside the directory you compiled in. At this
 point you can load the extension like this "source simple.tcl".
 You should see a "hello world" message that shows the extension
 was loaded and is functioning properly.