s1: get Class object

2008-11-18 Thread farmer2008
In my project with struts 1.3.5, Class object can only be created via anInstance.getClass(). If I use Class.forName(...) or .class, I get java.lang.NoClassDefFoundError: . Is it a struts issue? Is there a way we still can use .class syntax to get a Class object? Thanks. -- View this message in c

Re: s1: get Class object

2008-11-18 Thread Mead Lai
Do you create an object In the struts Action? or others, i.e formBean? On Wed, Nov 19, 2008 at 1:16 AM, farmer2008 <[EMAIL PROTECTED]> wrote: > > In my project with struts 1.3.5, Class object can only be created via > anInstance.getClass(). If I use Class.forName(...) or .class, I get > java.lang

Re: s1: get Class object

2008-11-19 Thread farmer2008
Yes. I guess the issue is related to ClassLoader so I enforce to use system class loader like this: try { Class cls = Class.forName("...", true, ClassLoader.getSystemClassLoader()); } catch (...) {} but still failed. Since I'm using eclipse 3, is there a setting of class loader in eclipse?