代码好像没有错,可是编写翻译境遇题目

很想取得,不通晓怎么回事?能给出原因么?先谢了

packagepkg1.pkg2;publicinterfaceCommon{intgetAge(inti);}

packagepkg1;importpkg1.pkg2.*;publicclassManimplementsCommon{publicintgetAge(inti){returni;}}

importpkg1.pkg2.*;importpkg1.*;importjava.lang.*;publicclassResult{publicstaticvoidmain(Stringargs[]){intage,i;i=Integer.parseInt(args[1]);try{Manm=newMan();Commond=(Common)m;age=d.getAge(i);System.out.println("Manage:"+age);}catch(Exceptione){System.out.println("classnotfound");}}}