Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] question about using ajc with command line

I want to weave a file aspect.aj to a executable java file like source.jar, and the output class files into the jar file out.jar.
 
I use the command following:
ajc -inpath source.jar -1.6 -sourceroots aspect.aj -outjar out.jar
 
And the out.jar can be created without any error or warning. aspect.aj dependents on dep.jar. And dep.jar has been set in classpath. But when execute out.jar, NoClassDefFoundError exception will be reported about some class in dep.jar.
 
Is the command right? What change should I do?
2011-12-12

shaoxiaozhe09

Back to the top