Re: [tcljava-user] Load extension in Tcl file
Brought to you by:
mdejong
From: rahul <Rah...@Su...> - 2007-01-12 14:58:04
|
[Pham Ngoc Khanh:] | script: contain scripts (Tcl file) | scr: contain Java file ================= | package com; | public class TestCommand implements tcl.lang.Command { | public void cmdProc(...) {...} | } ================= | package com; | | public class TestCommandExtension implements | tcl.lang.Extension { | public void init(...) { | // create a TestCommand | } | } | | How to load TestCommandExtsion from script store in | script folder as i mention above with this situation ? | (I'm using Windows XP) =============== # do this.... package require java java::load -classpath {../scr} com.TestCommandExtension =============== |