You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by galaxy <ti...@gmail.com> on 2009/08/05 05:57:43 UTC
How to compile kernel.jar ?
Hi all
I edited the code in the ClassLoader.java in the working_vm dir ,and want
to build a new kernel.jar
but this doesn.t work ..
Any one may help ?
Thanks
--
regards
Tian
Re: How to compile kernel.jar ?
Posted by galaxy <ti...@gmail.com>.
thanks all .
the kernel.jar has been build successully ,
Copying to the anhome/lib also works .
2009/8/5 Andrew Myers <am...@gmail.com>
> Hi Tian,
>
> I had the same issue recently. SOmeone here advised me to copy junit.jar
> into either ~/.ant/lib or ANT_HOME/lib and that seemed to do the trick.
>
> Andrew.
>
> 2009/8/5 galaxy <ti...@gmail.com>
>
> > Hi ,
> > just now I tried to rebuild all in the truck folder but ended up in other
> > errors as [1],
> > I checked the junit.jar ,it's in the depends/jars/junit_4.4 ,
> > any idea of why this happened ?
> > BTW ,I have several successful builds of jdk before .
> >
> >
> > [1]
> >
> > Compiling accessibility api tests
> > [javac] Compiling 8 source files to
> > D:\Harmony\checkout\trunk\working_classlib\modules\accessibility\bin\test
> > [javac] Since fork is false, ignoring memoryMaximumSize setting
> > [javac] ----------
> > [javac] 1. ERROR in
> >
> >
> D:\Harmony\checkout\trunk\working_classlib\modules\accessibility\src\test\api\java\common\javax\accessibility\AccessibleBundleTest.java
> > (at line 25)
> > [javac] import junit.framework.TestCase;
> > [javac] ^^^^^
> > [javac] The import junit cannot be resolved
> > [javac] ----------
> > [javac] 2. ERROR in
> >
> >
> D:\Harmony\checkout\trunk\working_classlib\modules\accessibility\src\test\api\java\common\javax\accessibility\AccessibleBundleTest.java
> > (at line 27)
> > [javac] public class AccessibleBundleTest extends TestCase {
> > [javac] ^^^^^^^^
> > [javac] TestCase cannot be resolved to a type
> > [javac] ----------
> > [javac] 3. ERROR in
> >
> >
> D:\Harmony\checkout\trunk\working_classlib\modules\accessibility\src\test\api\java\common\javax\accessibility\AccessibleBundleTest.java
> > (at line 38)
> > [javac] assertEquals("DisplayString don't match resource: " +
> > bundle.key, bundle
> > [javac] ^^^^^^^^^^^^
> > [javac] The method assertEquals(String, String, Object) is undefined
> for
> > the type AccessibleBundleTest
> > [javac] ----------
> >
> > 2009/8/5 Alexey Varlamov <al...@gmail.com>
> >
> > > You need to invoke 'ant kernel' in "working_vm" directory.
> > >
> > > 2009/8/5 galaxy <ti...@gmail.com>:
> > > > Hi all
> > > >
> > > > I edited the code in the ClassLoader.java in the working_vm dir ,and
> > > want
> > > > to build a new kernel.jar
> > > > but this doesn.t work ..
> > > > Any one may help ?
> > > > Thanks
> > > >
> > > > --
> > > > regards
> > > > Tian
> > > >
> > >
> >
> >
> >
> > --
> > regards
> > Tian
> >
>
--
regards
Tian
Re: How to compile kernel.jar ?
Posted by Andrew Myers <am...@gmail.com>.
Hi Tian,
I had the same issue recently. SOmeone here advised me to copy junit.jar
into either ~/.ant/lib or ANT_HOME/lib and that seemed to do the trick.
Andrew.
2009/8/5 galaxy <ti...@gmail.com>
> Hi ,
> just now I tried to rebuild all in the truck folder but ended up in other
> errors as [1],
> I checked the junit.jar ,it's in the depends/jars/junit_4.4 ,
> any idea of why this happened ?
> BTW ,I have several successful builds of jdk before .
>
>
> [1]
>
> Compiling accessibility api tests
> [javac] Compiling 8 source files to
> D:\Harmony\checkout\trunk\working_classlib\modules\accessibility\bin\test
> [javac] Since fork is false, ignoring memoryMaximumSize setting
> [javac] ----------
> [javac] 1. ERROR in
>
> D:\Harmony\checkout\trunk\working_classlib\modules\accessibility\src\test\api\java\common\javax\accessibility\AccessibleBundleTest.java
> (at line 25)
> [javac] import junit.framework.TestCase;
> [javac] ^^^^^
> [javac] The import junit cannot be resolved
> [javac] ----------
> [javac] 2. ERROR in
>
> D:\Harmony\checkout\trunk\working_classlib\modules\accessibility\src\test\api\java\common\javax\accessibility\AccessibleBundleTest.java
> (at line 27)
> [javac] public class AccessibleBundleTest extends TestCase {
> [javac] ^^^^^^^^
> [javac] TestCase cannot be resolved to a type
> [javac] ----------
> [javac] 3. ERROR in
>
> D:\Harmony\checkout\trunk\working_classlib\modules\accessibility\src\test\api\java\common\javax\accessibility\AccessibleBundleTest.java
> (at line 38)
> [javac] assertEquals("DisplayString don't match resource: " +
> bundle.key, bundle
> [javac] ^^^^^^^^^^^^
> [javac] The method assertEquals(String, String, Object) is undefined for
> the type AccessibleBundleTest
> [javac] ----------
>
> 2009/8/5 Alexey Varlamov <al...@gmail.com>
>
> > You need to invoke 'ant kernel' in "working_vm" directory.
> >
> > 2009/8/5 galaxy <ti...@gmail.com>:
> > > Hi all
> > >
> > > I edited the code in the ClassLoader.java in the working_vm dir ,and
> > want
> > > to build a new kernel.jar
> > > but this doesn.t work ..
> > > Any one may help ?
> > > Thanks
> > >
> > > --
> > > regards
> > > Tian
> > >
> >
>
>
>
> --
> regards
> Tian
>
Re: How to compile kernel.jar ?
Posted by Andrew Myers <am...@gmail.com>.
Would it be possible to modify the build classpath to include this jar, or
is there some kind of requirement by ant that it is in ant ant/lib
directory?
2009/8/5 Charles Lee <li...@gmail.com>
> Maybe add junit.jar in the ANT_HOME/lib
>
> On Wed, Aug 5, 2009 at 1:17 PM, galaxy <ti...@gmail.com> wrote:
>
> > Hi ,
> > just now I tried to rebuild all in the truck folder but ended up in other
> > errors as [1],
> > I checked the junit.jar ,it's in the depends/jars/junit_4.4 ,
> > any idea of why this happened ?
> > BTW ,I have several successful builds of jdk before .
> >
> >
> > [1]
> >
> > Compiling accessibility api tests
> > [javac] Compiling 8 source files to
> > D:\Harmony\checkout\trunk\working_classlib\modules\accessibility\bin\test
> > [javac] Since fork is false, ignoring memoryMaximumSize setting
> > [javac] ----------
> > [javac] 1. ERROR in
> >
> >
> D:\Harmony\checkout\trunk\working_classlib\modules\accessibility\src\test\api\java\common\javax\accessibility\AccessibleBundleTest.java
> > (at line 25)
> > [javac] import junit.framework.TestCase;
> > [javac] ^^^^^
> > [javac] The import junit cannot be resolved
> > [javac] ----------
> > [javac] 2. ERROR in
> >
> >
> D:\Harmony\checkout\trunk\working_classlib\modules\accessibility\src\test\api\java\common\javax\accessibility\AccessibleBundleTest.java
> > (at line 27)
> > [javac] public class AccessibleBundleTest extends TestCase {
> > [javac] ^^^^^^^^
> > [javac] TestCase cannot be resolved to a type
> > [javac] ----------
> > [javac] 3. ERROR in
> >
> >
> D:\Harmony\checkout\trunk\working_classlib\modules\accessibility\src\test\api\java\common\javax\accessibility\AccessibleBundleTest.java
> > (at line 38)
> > [javac] assertEquals("DisplayString don't match resource: " +
> > bundle.key, bundle
> > [javac] ^^^^^^^^^^^^
> > [javac] The method assertEquals(String, String, Object) is undefined
> for
> > the type AccessibleBundleTest
> > [javac] ----------
> >
> > 2009/8/5 Alexey Varlamov <al...@gmail.com>
> >
> > > You need to invoke 'ant kernel' in "working_vm" directory.
> > >
> > > 2009/8/5 galaxy <ti...@gmail.com>:
> > > > Hi all
> > > >
> > > > I edited the code in the ClassLoader.java in the working_vm dir ,and
> > > want
> > > > to build a new kernel.jar
> > > > but this doesn.t work ..
> > > > Any one may help ?
> > > > Thanks
> > > >
> > > > --
> > > > regards
> > > > Tian
> > > >
> > >
> >
> >
> >
> > --
> > regards
> > Tian
> >
>
>
>
> --
> Yours sincerely,
> Charles Lee
>
Re: How to compile kernel.jar ?
Posted by Charles Lee <li...@gmail.com>.
Maybe add junit.jar in the ANT_HOME/lib
On Wed, Aug 5, 2009 at 1:17 PM, galaxy <ti...@gmail.com> wrote:
> Hi ,
> just now I tried to rebuild all in the truck folder but ended up in other
> errors as [1],
> I checked the junit.jar ,it's in the depends/jars/junit_4.4 ,
> any idea of why this happened ?
> BTW ,I have several successful builds of jdk before .
>
>
> [1]
>
> Compiling accessibility api tests
> [javac] Compiling 8 source files to
> D:\Harmony\checkout\trunk\working_classlib\modules\accessibility\bin\test
> [javac] Since fork is false, ignoring memoryMaximumSize setting
> [javac] ----------
> [javac] 1. ERROR in
>
> D:\Harmony\checkout\trunk\working_classlib\modules\accessibility\src\test\api\java\common\javax\accessibility\AccessibleBundleTest.java
> (at line 25)
> [javac] import junit.framework.TestCase;
> [javac] ^^^^^
> [javac] The import junit cannot be resolved
> [javac] ----------
> [javac] 2. ERROR in
>
> D:\Harmony\checkout\trunk\working_classlib\modules\accessibility\src\test\api\java\common\javax\accessibility\AccessibleBundleTest.java
> (at line 27)
> [javac] public class AccessibleBundleTest extends TestCase {
> [javac] ^^^^^^^^
> [javac] TestCase cannot be resolved to a type
> [javac] ----------
> [javac] 3. ERROR in
>
> D:\Harmony\checkout\trunk\working_classlib\modules\accessibility\src\test\api\java\common\javax\accessibility\AccessibleBundleTest.java
> (at line 38)
> [javac] assertEquals("DisplayString don't match resource: " +
> bundle.key, bundle
> [javac] ^^^^^^^^^^^^
> [javac] The method assertEquals(String, String, Object) is undefined for
> the type AccessibleBundleTest
> [javac] ----------
>
> 2009/8/5 Alexey Varlamov <al...@gmail.com>
>
> > You need to invoke 'ant kernel' in "working_vm" directory.
> >
> > 2009/8/5 galaxy <ti...@gmail.com>:
> > > Hi all
> > >
> > > I edited the code in the ClassLoader.java in the working_vm dir ,and
> > want
> > > to build a new kernel.jar
> > > but this doesn.t work ..
> > > Any one may help ?
> > > Thanks
> > >
> > > --
> > > regards
> > > Tian
> > >
> >
>
>
>
> --
> regards
> Tian
>
--
Yours sincerely,
Charles Lee
Re: How to compile kernel.jar ?
Posted by galaxy <ti...@gmail.com>.
Hi ,
just now I tried to rebuild all in the truck folder but ended up in other
errors as [1],
I checked the junit.jar ,it's in the depends/jars/junit_4.4 ,
any idea of why this happened ?
BTW ,I have several successful builds of jdk before .
[1]
Compiling accessibility api tests
[javac] Compiling 8 source files to
D:\Harmony\checkout\trunk\working_classlib\modules\accessibility\bin\test
[javac] Since fork is false, ignoring memoryMaximumSize setting
[javac] ----------
[javac] 1. ERROR in
D:\Harmony\checkout\trunk\working_classlib\modules\accessibility\src\test\api\java\common\javax\accessibility\AccessibleBundleTest.java
(at line 25)
[javac] import junit.framework.TestCase;
[javac] ^^^^^
[javac] The import junit cannot be resolved
[javac] ----------
[javac] 2. ERROR in
D:\Harmony\checkout\trunk\working_classlib\modules\accessibility\src\test\api\java\common\javax\accessibility\AccessibleBundleTest.java
(at line 27)
[javac] public class AccessibleBundleTest extends TestCase {
[javac] ^^^^^^^^
[javac] TestCase cannot be resolved to a type
[javac] ----------
[javac] 3. ERROR in
D:\Harmony\checkout\trunk\working_classlib\modules\accessibility\src\test\api\java\common\javax\accessibility\AccessibleBundleTest.java
(at line 38)
[javac] assertEquals("DisplayString don't match resource: " +
bundle.key, bundle
[javac] ^^^^^^^^^^^^
[javac] The method assertEquals(String, String, Object) is undefined for
the type AccessibleBundleTest
[javac] ----------
2009/8/5 Alexey Varlamov <al...@gmail.com>
> You need to invoke 'ant kernel' in "working_vm" directory.
>
> 2009/8/5 galaxy <ti...@gmail.com>:
> > Hi all
> >
> > I edited the code in the ClassLoader.java in the working_vm dir ,and
> want
> > to build a new kernel.jar
> > but this doesn.t work ..
> > Any one may help ?
> > Thanks
> >
> > --
> > regards
> > Tian
> >
>
--
regards
Tian
Re: How to compile kernel.jar ?
Posted by Alexey Varlamov <al...@gmail.com>.
You need to invoke 'ant kernel' in "working_vm" directory.
2009/8/5 galaxy <ti...@gmail.com>:
> Hi all
>
> I edited the code in the ClassLoader.java in the working_vm dir ,and want
> to build a new kernel.jar
> but this doesn.t work ..
> Any one may help ?
> Thanks
>
> --
> regards
> Tian
>