Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

inner class - ClassNotFoundException

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi all,

I have the following code segment: It has a "Manager" class with an inner class called "KeyValue". Another class named "Caller" tries to instantiate an object of type Manager. The Eclipse debugger showed gave a ClassNotFoundException at the

1. public class Manager{
2. public class KeyValue {
3. protected Object element;
4. protected Object value;
5. public KeyValue(Object element, Object value) {
6.this.element = element;
7.this.value = value;
}
}

8.protected List<KeyValue> cache;
9.int direction;

10.public Manager(List<KeyValue> cache,int direction){
11.this.cache = cache;
12.this.direction = direction;

}
}

13. public class Caller{

14. public void callerMethod{
15.List<KeyValue> mycache = new ArrayList<KeyValue>();
int Direction = 3;
Manager m = new Manager(mycache, 3);
}
}
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
    Bookmark Topic Watch Topic
  • New Topic