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
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
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?
3 matches
Mail list logo