Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsNoClassDefFoundError with Aspectj 1.2 (upd) on Eclipse 2.1.3
https://www.eclipse.org/forums/index.php/mv/msg/12673/39680/#msg_39680
Originally posted by: christian.eugster.bluewin.ch
Hello
I am using Eclipse 2.1.3, have ajdt 1.4 installed and updated for Aspectj
1.2. Because I am new to aspect-oriented Programming, I tried to implement
first a logging aspect as I learned by "AspectJ in action" (see the source
below). I can ompile the whole code without problems, but running the
example I get always an NoClassDefFoundError. This Error occures at the
first place, where i use one of my core classes named Path, that has some
static String constants containing pathnames to the system. Without aspectj
the project runs problemless.
I searched the web, found an entry in the bugzilla tool for eclipse
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=44587) but that points to
ajdt 1.4 without update. Has anybody any idea how I could solve that
problem? Thank you in advance!
Christian
/*
* Created on 21.07.2004
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
}]]>2004-08-02T06:36:21-00:00Re: NoClassDefFoundError with Aspectj 1.2 (upd) on Eclipse 2.1.3
https://www.eclipse.org/forums/index.php/mv/msg/12673/39712/#msg_39712
Originally posted by: mchapman.uk.ibm.com
On Mon, 02 Aug 2004 08:36:21 +0200, Christian Eugster wrote:
> I am using Eclipse 2.1.3, have ajdt 1.4 installed and updated for Aspectj
> 1.2. Because I am new to aspect-oriented Programming, I tried to
> implement first a logging aspect as I learned by "AspectJ in action" (see
> the source below). I can ompile the whole code without problems, but
> running the example I get always an NoClassDefFoundError. This Error
> occures at the first place, where i use one of my core classes named Path,
> that has some static String constants containing pathnames to the system.
> Without aspectj the project runs problemless.
>
> I searched the web, found an entry in the bugzilla tool for eclipse
> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=44587) but that points to
> ajdt 1.4 without update. Has anybody any idea how I could solve that
> problem? Thank you in advance!
I'm not certain what is happening here, but the initializer might be
throwing an exception, which is then resulting in the
NoClassDefFoundError. I suggest you try adding a "catch (Throwable t)" to
the catch block around the call to new FileHandler, then do
"t.printStackTrace();" there, to see if this is the case.
Regards,
Matt.]]>2004-08-02T13:55:59-00:00Re: NoClassDefFoundError with Aspectj 1.2 (upd) on Eclipse 2.1.3
https://www.eclipse.org/forums/index.php/mv/msg/12673/582479/#msg_582479
> I am using Eclipse 2.1.3, have ajdt 1.4 installed and updated for Aspectj
> 1.2. Because I am new to aspect-oriented Programming, I tried to
> implement first a logging aspect as I learned by "AspectJ in action" (see
> the source below). I can ompile the whole code without problems, but
> running the example I get always an NoClassDefFoundError. This Error
> occures at the first place, where i use one of my core classes named Path,
> that has some static String constants containing pathnames to the system.
> Without aspectj the project runs problemless.
>
> I searched the web, found an entry in the bugzilla tool for eclipse
> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=44587) but that points to
> ajdt 1.4 without update. Has anybody any idea how I could solve that
> problem? Thank you in advance!
I'm not certain what is happening here, but the initializer might be
throwing an exception, which is then resulting in the
NoClassDefFoundError. I suggest you try adding a "catch (Throwable t)" to
the catch block around the call to new FileHandler, then do
"t.printStackTrace();" there, to see if this is the case.