@Override protected Package definePackage(String name,String a1,String a2,String a3,String b1,String b2,String b3,URL url){
  name=name.replace('/','.');
  name=name.replace('\\','.');
  if (name.endsWith(".")) {
    name=name.substring(0,name.length() - 1);
  }
  Package pkg=super.definePackage(name,a1,a2,a3,b1,b2,b3,url);
  return pkg;
}

@ Override protected Package definePackage ( String name , String a1 , String a2 , String a3 , String b1 , String b2 , String b3 , URL url ) { name = name . replace ( '/' , '.' ) ; name = name . replace ( '\\' , '.' ) ; if ( name . endsWith ( "." ) ) { name = name . substring ( 0 , name . length ( ) - 1 ) ; } Package pkg = super . definePackage ( name , a1 , a2 , a3 , b1 , b2 , b3 , url ) ; return pkg ; }
defines a new package .
