• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to access the static inner class inside static interface inside a class?  RSS feed

 
Slaxmi Raj
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hello, I am trying to access the class C,but getting fatal error, please any one explain me
how to access the static inner class
.
 
Paul Clapham
Sheriff
Posts: 22843
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A fatal error? Don't you know anything else about the problem? Does the error message contain words other than "fatal"?
 
Slaxmi Raj
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you ..
when i execute the program java virtual Machine launcher producing the dialog box containing the message
Fatal exception occured. Progeam will exit.
After clicking ok it given the error message in the console
java.lang.NoSuchMethodError: main
Exception in thread "main"

 
Paul Clapham
Sheriff
Posts: 22843
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You didn't say what led to that error. Except that you said you tried to execute "the program", whatever that is. Please try to give an adequate description of the problem in future. You can read our FAQ page TellTheDetails (<- follow that link) to see what kind of information is useful to people who would like to help you.
 
jatan bhavsar
Ranch Hand
Posts: 299
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Raj,


Try this one..
 
Slaxmi Raj
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Jatan
Got it. so to create instance to the static class inside the static inner interface there is no need to use the outer class. Thank you once again.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!