when run any program then exception is thrown class not found

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Darpana
    New Member
    • Jan 2011
    • 3

    when run any program then exception is thrown class not found

    this eception occurs even if class name and program name is same
  • Darpana
    New Member
    • Jan 2011
    • 3

    #2
    pleae send ans

    Comment

    • horace1
      Recognized Expert Top Contributor
      • Nov 2006
      • 1510

      #3
      are you attempting to run the program from the directory where the .class file is?
      are you using packages? if so do you have the correct directory structure?

      Comment

      • Dheeraj Joshi
        Recognized Expert Top Contributor
        • Jul 2009
        • 1129

        #4
        Please post the code. It will help us to figure out the problem.

        Regards
        Dheeraj Joshi

        Comment

        • nathj
          Recognized Expert Contributor
          • May 2007
          • 937

          #5
          It would be good to see the code, information on the directory structure and the command line you are using to fire this off. We should then be able to help you figure it out

          >>edit

          Are you using an IDE to develop your code? If so what happens when you run the code there? Also do you have a main method in the class you are running?

          Thanks
          nathj

          Comment

          Working...