Can you show some of your code, especially any reference to a class called "Loop"? The error is saying that java wants to load a class called Loop, but it can't find it in anywhere in the current classpath.
For your first, you need to learn about classpaths. That's well described in any decent beginners' book, no need to repeat that here.
For the second, that all depends on the version of Eclipse. But when you select a class to run you can also supply parameters to it in the runtime configuration dialog.
hi ,
thanks for ur reply
i tried that program in both IDE and command prompt.In command promp its saying that :noclassdeffounderror.
I assume that you are able to run your app with no prob through the IDE. For the CMD, make sure you change the directory to the path where the java class file is logically stored. You should be able to run it now. If you don't want to have to change to different directories to run your apps every single time, then take the advice that has been given to you already, "LEARN ABOUT SETTING THE CLASSPATH ENVIRONMENT VARIABLE!"
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.