Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Running Nested Classes
Running Nested Classes [message #201477] Fri, 23 March 2007 19:43 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Connecting to CVS host "dev.eclipse.org"
Next Topic:Doubleclickevent for SelectionDialog
Goto Forum:
  


Current Time: Thu Sep 19 04:03:00 GMT 2024

Powered by FUDForum. Page generated in 0.08825 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top