how to determine package name of a class in a jar file -
for example, in following example of log4j.jar:
to import:
import org.apache.log4j.logger;
is package name "org.apache.log4j" determined path \org\apache\log4j\logger.class?
yes, package name needs match path in jar file (or directory). otherwise class cannot found.
however, cannot move class file around change package. encoded class bytecode itself. if want change it, need recompile class.