Mikhail,
I've just checked everything out from scratch and it builds ok for me.
That is a type that was moved recently but the extra elements in the
package name certainly look weird. Are you running the stock build.xml,
and a regular javac?
Regards,
Tim
Mikhail Loenko wrote:
> Hello
>
> I've created a new workspace on a pure machine and trying to build classlib.
>
> I get the following error:
>
> compile:
> [javac] Compiling 663 source files to H:\workspace\harmony\bin
> [javac]
> H:\workspace\harmony\modules\luni\src\main\java\java\util\Locale.java:31:
> cannot access org.apache.harmony.luni.internal.locale.Country
> [javac] bad class file:
> H:\workspace\harmony\bin\org\apache\harmony\luni\internal\locale\Country.class
> [javac] class file contains wrong class:
> modules.luni.src.main.java.org.apache.harmony.luni.internal.locale.Country
> [javac] Please remove or make sure it appears in the correct
> subdirectory of the classpath.
> [javac] import org.apache.harmony.luni.internal.locale.Country;
> [javac] ^
> [javac] 1 error
>
> BUILD FAILED
> H:\workspace\harmony\make\build.xml:36: The following error occurred
> while executing this line:
> H:\workspace\harmony\make\build-java.xml:173: Compile failed; see the
> compiler error output for details.
>
>
> I'm trying to disassemble that class and see that it indeed has a wrong
> package:
>
>
> H:\workspace\harmony\bin>javap org.apache.harmony.luni.internal.locale.Country
> Compiled from "Country.java"
> public class
> modules.luni.src.main.java.org.apache.harmony.luni.internal.locale.Country
> extends java.util.ListResourceBundle{
> public
> modules.luni.src.main.java.org.apache.harmony.luni.internal.locale.Country();
> protected java.lang.Object[][] getContents();
> }
>
>
> What am I doing wrong? On my old machine everything works just fine.
>
> Thanks,
> Mikhail.
>
--
Tim Ellison ([EMAIL PROTECTED])
IBM Java technology centre, UK.