harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Loenko" <mloe...@gmail.com>
Subject Re: build problems
Date Thu, 02 Mar 2006 12:54:07 GMT
When I'm checking out from scratch on my old machine everything works well.
The new machine was originally pure, i'm populating it with various
soft right now.

I go 'cd enhanced/classlib/trunk/make' and there type 'ant'.

How can I fugure out which javac is used? JAVA_HOME points to JDK1.5 (have
tried 1.4 also - same result)

All other class files compiled at the moment of build failure also have extra
elements in the package name.

Thanks,
Mikhail

2006/3/2, Tim Ellison <t.p.ellison@gmail.com>:
> 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 (t.p.ellison@gmail.com)
> IBM Java technology centre, UK.
>

Mime
View raw message