I have an eclipse project which I want to run from the command line in ubuntu. After searching on the internet I am trying the following command.
java -cp . com.abc.utils.MyClassName
I issue this command from the directory that eclipse is using to store all the class files. But I get this error:
Exception in thread "main" java.lang.NoClassDefFoundError: com/abc/utils/MyClassName
what am I doing wrong and how to run the application from the command line ?