[tcljava-user] Question about TclJava...
Brought to you by:
mdejong
|
From: Georgios P. <pet...@ya...> - 2010-08-13 07:59:17
|
Hi all,
I have written a Tcl extension in Java:
public class JavaTest extends Extension {
public void init(Interp interp) {
/* Register some commands... */
interp.createCommand("creole_JavaTest",
new creole_JavaTest());
}
public static void SetComponentHome(String path) {
System.out.println("JavaTest::SetComponentHome("+path+")");
creole_JavaTest.creole_JavaTest_home = path;
}
} /* class JavaTest */
My "JavaTest" that is an extension, has a new method "SetComponentHome".
Is there a way to call this method?
I can load the extension with:
java::load -classpath path JavaTest
but the JavaTest class seems to disappear after the extension gets
loaded. Any ideas on how to call SetComponentHome?
George
|