[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: Running Nested Classes

Ben S. wrote:
Does anyone remember how to call a nested class?

I have:

public class A {

  public static class B {

  }

}


I thought I would want to use 'package.names.A$B' for the 'Main class' in the Run pop-up, but this isn't working.



The A$B name is just a name that the compiler generates for the .class files. You can use package.A.B as the class name in code or launch configurations.


Hope this helps,
	Eric