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.
Originally posted by Jesper de Jong: If your code looks exactly like the above, the problem was not in the fact that you used the name "argv" instead of "args". It's just a variable name, it does not cause a NoClassDefFoundError.
You probably hadn't your classpath set up correctly.