File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes inner class - ClassNotFoundException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

inner class - ClassNotFoundException

Deb Pati
Greenhorn

Joined: Aug 04, 2006
Posts: 4
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);
}
}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: inner class - ClassNotFoundException