File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes NoClassDefFoundError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "NoClassDefFoundError" Watch "NoClassDefFoundError" New topic
Author

NoClassDefFoundError

Ramm Kummar
Greenhorn

Joined: Feb 10, 2009
Posts: 26
Getting this error while running java. Please suggest. I have defined required things in the classpath

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41630
    
  55
You always need to give the fully qualified classname: "java com.wickedlysmart.CmdArgs". This should work assuming that the "classes" directory is in the classpath.


Ping & DNS - my free Android networking tools app
Eric Larsen
Ranch Hand

Joined: Mar 28, 2009
Posts: 35
From what I can see, you are currently in the same directory as your .class file. Instead of running the class from here, you should run it from the /classes directory, like this:

C:\MyProject\classes\>java com.wickedlysmart.CmdArgs

That is, assuming that the class includes a package statement at the beginning of the file:

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NoClassDefFoundError