hi Eugene,
i guess both works fine as we use the jar file.
1. the package access via "."
this works as
java class loader parses the fully qualified class name and "resolves" all "." and replaces them with "/".
then the class loader tries to find that directory path in the CLASSPATH and if it finds it then loades the class from directory : packagename. so essentially, if my package is,
"earth.myhome" then after "resolving" it will be,
earth/myhome and if the class is "myTV" then it will look for , earth/myhome/myTV.class in the Jar...
now, in Jar file (that follows the standard zip format if i'm not mistaken), we have the directory based storage , right? so, now when the class loader encounters the packaged class, it "resolves" the packagename for the class and then looks for that package directory in the Jar. it works if the directory is Jarred in there.
2. for the "/" operator in Main-Class,
here also it works due to the "resolve" mechanism as the "."s gets converted into "/" ...
so i guess both works...
regards
maulin