Problem with Outer and Inner Classes....or better way?
Right now I'm trying to create an Inner class.
My .java file compiles ok, and I create my jar file too.
But when I try to instantiate the Inner class, it fails:
java.lang.NoClassDefFoundError: com/myco/vlXML/vlXML$vlDocument.
Here's the class code:
publicclass vlXML{
private ArrayList myDocList=new ArrayList();//holds documents
public vlXML(){
}
privateclass vlDocument{
public vlDocument(){
}
//stuff goes here
}
public vlDocument vlDOC(){
returnnew vlDocument();
}
publicvoid addDocument(){
vlXML xxx=new vlXML();
vlDocument myDoc=xxx.vlDOC();
myDocList.add(myDoc);
}
publicint getNumDocs(){
return myDocList.size();
}
}
Then, from a jsp page, I call:
vlXML junk1=new vlXML();
junk1.addDocument();
...and get the error...
Can someone help me figure out why it's failing?
Thanks....

