Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-dev] Difference between Eclipse and Command Line

Pieter wrote:
> When including the aspectjrt jar file, I get this:
> $ java -classpath "aspectjrt.jar" atest.Mainclass
> Exception in thread "main" java.lang.NoClassDefFoundError:
> atest/Mainclass
> Caused by: java.lang.ClassNotFoundException: atest.Mainclass

You need to include both the aspectjrt.jar AND the path to your classes
with the -classpath argument: java -cp .:/path/to/aspectjrt.jar yourclass

-h


Back to the top