Re: [tcljava-user] Class not found after successful class import.
Brought to you by:
mdejong
From: Mo D. <md...@un...> - 2005-11-19 22:37:05
|
On Sat, 19 Nov 2005 20:06:04 +0800 Patrick Finnegan <pfi...@hb...> wrote: > The following code is executed inside a proc. The "EmbeddedDriver" class > is imported successfully but attempts to instantiate the object generate a class not > found error. > java::call Class forName org.apache.derby.jdbc.EmbeddedDriver ... > java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver You can't just call class.forName() like that. Depending on how the classloader is implemented in the JVM, it may not work. If you want to get a ref to a java.lang.Class for a specific named class, use the class field of the object. % set c [java::field java.util.Hashtable class] java0x2 % $c toString class java.util.Hashtable cheers Mo DeJong |