This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am trying to connect with mysql database.my program is having main method. when i am compiling and running the program from the command prompt my program is working fine. I am using netbeans IDE. when i try to run the priogram directly using netbeans i getting this exception during runtime.
Where is the JAR file on your file system? How have you packaged the JAR file that contains the aspecj classes?
Classpath issues are easy to solve - just put the code on the classpath. The classloaders are the tough ones, because those can generate ClassNotFoundExceptions even when the class IS on the classpath somewhere.
Here's a link from my website on classloaders. It's pretty WebSphere centric, but it gives a pretty good idea on how J2EE classloaders and classloading works.