Java extensions
The Java equivalent of C extensions
package tutorial.tcltk98;import tcl.lang.*;public class JTimerExtension extends Extension { public void init (Interp interp) { Command cmd = new JTimerCommand(); interp.createCommand("jtimer",cmd); }}