0

I require a nested class, however I have developed using the one class one file system. I have simply moved the class that needs to be nested, inside the outer class and left the instantiation of the inner class the same. However, when trying to debug in eclipse, my nested class gets the following error message " Source not found." -(ClassNotFoundException) . However the code works fine, its just that I cant actively debug and see the current line of exception in my nested class.

public class Tract {
    public class chicken{

    }
    public Tract{
        chicken = new chicken(d);
    }
}

thanks, daniel

dgamma3
  • 2,333
  • 4
  • 26
  • 47
  • You might want to edit the `constructor` of `Tract` :). Have you tried to `clean` and `build` your project in Eclipse? – Sujay Aug 26 '12 at 08:56
  • 2
    Not sure you can have a variable name having the same name as a class. Use Java convention: class = Chicken and variable = chicken. – assylias Aug 26 '12 at 08:58
  • This [SO Link](http://stackoverflow.com/questions/4525334/debug-in-eclipse-classnotfoundexception) might help – Sujay Aug 26 '12 at 08:59

0 Answers0