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
Daniel Pitts - 23 Jan 2007 21:38 GMT
> Hi,
> i have 2 java files in the package "a.b.c"
[quoted text clipped - 33 lines]
> Can you throw some light on this problem?
> Regards
Uhm...
// mypack/A.java
package mypack;
class A {
}
//mypack/B.java
package mypack;
class B {
A a;
}
--
javac mypack/B.java

Signature
Works for me.
ali - 24 Jan 2007 07:17 GMT
> Hi,
> i have 2 java files in the package "a.b.c"
[quoted text clipped - 31 lines]
> Can you throw some light on this problem?
> Regards
it is about setting your class path i had this problem before just add
;. in the end of the class path or at the beggining put .; and then
compelete your class path
anshul - 24 Jan 2007 15:21 GMT
I did not have the classpath settings right. Thanks for your prompt
replies!
> Hi,
> i have 2 java files in the package "a.b.c"
[quoted text clipped - 31 lines]
> Can you throw some light on this problem?
> Regards