Re: [tcljava-dev] Safe interpreter object creation ?
Brought to you by:
mdejong
From: Mo D. <mo...@mo...> - 2008-11-20 21:08:45
|
Mallick Choppa wrote: > Hi > I have created safe interpreter in tcl.lang.MyClass.java as below > > Interp interp = InterpSlaveCmd.create(interpMaster, > TclString.newInstance("slave-1"), true); the interp object I use it > further. > > This works as long as the jacl.jar/tcljava.jar are loaded by same > class loader , but my requirement has changed such that my > jacl/tcljava jars are loaded by different classloader than the > tcl.lang.MyClass loading. So now i get error > > java.lang.IllegalAccessError: tried to access class > tcl.lang.InterpSlaveCmd from class tcl.lang.MyClass Hi Mallick I think the root of the problem you are having is that your class is in the tcl.lang package, it should be in some other package. You should not have classloader issues as long as you make use of the public APIs in the tcl.lang package. Mo |