Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A class in package references a class without package name in JDev.

Status
Not open for further replies.

hxw200

Programmer
Jul 30, 2004
1
0
0
US
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.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top