I have a class(e.g. NamedClass) in a named package to
reference a class(e.g. UnnamedClass) without package
name in JDeveloper environment, but the compiler failed
to find UnnamedClass even if the UnnamedClass is
in the output directory which suppose to be in the
classpath by JDeveloper documentation.
For example:
in the file UnnamedClass.java contans class UnnamedClass:
public class UnnamedClass {
...
}
in the file NamedClass.java contains class NamedClass:
package com.abc;
import UnnamedClass;
public class NamedClass
{
...
}
The file directory is like below in JDeveloper:
c:\MyProject\src\UnnamedClass.java
\com\abc\NamedClass.java
Note: both UnnamedClass.java and com\abc\NamedClass.java
are in directory c:\MyProject\src.
and the output directory is
c:\MyProject\classes
Any idea? Thanks.
reference a class(e.g. UnnamedClass) without package
name in JDeveloper environment, but the compiler failed
to find UnnamedClass even if the UnnamedClass is
in the output directory which suppose to be in the
classpath by JDeveloper documentation.
For example:
in the file UnnamedClass.java contans class UnnamedClass:
public class UnnamedClass {
...
}
in the file NamedClass.java contains class NamedClass:
package com.abc;
import UnnamedClass;
public class NamedClass
{
...
}
The file directory is like below in JDeveloper:
c:\MyProject\src\UnnamedClass.java
\com\abc\NamedClass.java
Note: both UnnamedClass.java and com\abc\NamedClass.java
are in directory c:\MyProject\src.
and the output directory is
c:\MyProject\classes
Any idea? Thanks.