hi Aleksander,
1. we have to import the b1 package with its fully qualified name,
like "import a.b1.*;"
2. how to set the environment variable:
under win-2k: first go to system properties, using the shortcut key
"win-key+pause"; then go to that advanced tab; on their u can find the environment variable button, just click that button, now u go system variables part & click the "new button"; now u have to set two environment variable one is "variable name: JAVA_HOME" & "variable value: ur jdk home directory; eg. c:\jdk1.3".
then add the new value that is ur jdk bin directory, eg. c:\jdk1.3\bin", separate the new value using semicolon(
.
3. click the "new button" "variable name: classpath" & "variable value: c:\jdk1.3\bin;c:\jdk1.3\bin\a\b2.*;
4. now u can compile ur Second.java file, using the below command (in command prompt)
"C:\jdk1.3\bin> javac a\b2\Second.java" (under ur jdk bin directory)
5. u can run ur class file using, "C:\jdk1.3\bin> java a.b2.Second"
try this...
J.Ramesh