[tcljava-user] Fatal Error in Wish
Brought to you by:
mdejong
|
From: Rory M. <ro...@gm...> - 2008-05-26 16:07:59
|
Iam trying to get TclBlend to open a simple java class.
The java code is as follows:
package p;
public class c
{
public c(String s)
{
contents = s;
}
public String toString()
{
return contents;
}
public String contents = "default value";
}
and the tcl code is:
set env(CLASSPATH) [file join H: TCL_TEST myJar add newJAR.jar]
puts $env(CLASSPATH)
file exists $env(CLASSPATH)
package require java
set x [java::new p.c]
After i run the "set x [java::new p.c]" i get a Fatal Error:
Fatal Error in Wish
JavaCmdProc : Interp.callCommand() raised an Exception
"set x [java::new p.c "Hello world"]" throws the same error
Do you have any solution for this or any other way I can load this simple
java class?
--
Regards,
Rory McGrath
|