Loading an extension
package require javajava::load \ tutorial.tcltk98.JTimerExtension
- The Java class loader loads the extension class
- Tcl Blend calls the init method
- init adds the jtimer command to Tcl
- Try
$t start; after 1000 \ {puts [jtimer stop]}