hi,
I was making two different classes like this:
public class dbconn
{
package db.dbconnect;
//**** and rest of codes here
another is: public class testData
{
package test.data;
import db.dbconnect.*;
//**** and rest of codes here
now both
java files are in same directory. I am also setting the classpath for current director by giving following command:
set classpath=.;%classpath%
if i echo the classpath it shows the current directory too. If I try to compile the first one it gets compile easily but now if i try to compile the second one it gives error that package not found.
but strangely if i give packe like:
import db.dbconnect.dbconn; it accepts. why?
Isn't first style also Ok?
Pl give your comments.
regards,
arun