A
anshul
Hi,
i have 2 java files in the package "a.b.c"
Here is a sample snippet of their code:
ValidateIOF.java
package a.b.c;
public class ValidateIOF
{
....
}
The second class creates the object of the above class and uses it. It
is defined in the same package
IOFValidation_Main.java
package a.b.c;
import a.b.c.ValidateIOF
public class ValidateIOF
{
....
ValidateIOF viof = new ValidateIOF();
....
}
I know that the import statement is not really reqd.
But when I compile the IOFValidation_Main it gives me the errror:
IOFValidation_Main.java:2: cannot find symbol
symbol : class ValidateIOF
location: package a.b.c
import a.b.c.ValidateIOF;
I am not sure how to set my classpath, if I have to, for this.
Can you throw some light on this problem?
Regards
i have 2 java files in the package "a.b.c"
Here is a sample snippet of their code:
ValidateIOF.java
package a.b.c;
public class ValidateIOF
{
....
}
The second class creates the object of the above class and uses it. It
is defined in the same package
IOFValidation_Main.java
package a.b.c;
import a.b.c.ValidateIOF
public class ValidateIOF
{
....
ValidateIOF viof = new ValidateIOF();
....
}
I know that the import statement is not really reqd.
But when I compile the IOFValidation_Main it gives me the errror:
IOFValidation_Main.java:2: cannot find symbol
symbol : class ValidateIOF
location: package a.b.c
import a.b.c.ValidateIOF;
I am not sure how to set my classpath, if I have to, for this.
Can you throw some light on this problem?
Regards