Running Nested Classes [message #201477] |
Fri, 23 March 2007 19:43 |
Eclipse User |
|
|
|
Originally posted by: bschilke.biz.gmail.com
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.
|
|
|
Re: Running Nested Classes [message #201502 is a reply to message #201477] |
Fri, 23 March 2007 21:34 |
Eclipse User |
|
|
|
Originally posted by: csae7511.uibk.ac.at
Hi,
packagename.A$B is working for me.
Although not directly from the "Run As" context menu - you'll have to
create a new launch configuration in the "Run ..." menu.
But I'm not sure if this is what you asked for ;-)
Regards,
Stefan
Ben S. schrieb:
> 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.
>
|
|
|
Re: Running Nested Classes [message #201608 is a reply to message #201477] |
Sun, 25 March 2007 00:45 |
Eclipse User |
|
|
|
Originally posted by: eclipse5.rizzoweb.com
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
|
|
|
Powered by
FUDForum. Page generated in 0.08825 seconds