How to change package information thru Java code?
<p>In my current  Java project,  I have written a Java program that copies  some  Java  files  from  package "fr.inria.arles.pankesh.gen"  to package "fr.inria.arles.pankesh.impl".</p>

<p>After copying  Java  files from  package “fr.inria.arles.pankesh.gen”   to  package “fr.inria.arles.pankesh.impl” ,  my java files  are giving errors , due to  package Information change of Java file.</p>

<p>My question is  “Is there any way to change package  information ( thru java code, not manually) in header , when  my program copies Java files from package “fr.inria.arles.pankesh.gen”   to  package “fr.inria.arles.pankesh.impl”.</p>
