On 27/04/2010 04:38, Li QuanLong wrote:
Hi: I have got the source of Apache Harmony 5.0M13(r916432),but it does not work properly when i build it. The program is build on a 2.20 GHz Intel Pentium Dual E2200 machine with 2GB memory, running operating system Windows 7 Ultimate. It threw a exception when i build the classlib. The message is:test-jar-modules: [echo] polling accessibility\*.xml,annotation\*.xml,applet\*.xml,archive\*.xml,auth\*.xml,awt\*.xml,beans\*.xml,concurrent\*.xml,crypto\*.xml,imageio\*.xml,instrument\*.xml,jmx\*.xml,jndi\*.xml,lang-management\*.xml,logging\*.xml,luni\*.xml,luni-kernel\*.xml,math\*.xml,misc\*.xml,nio\*.xml,nio_char\*.xml,orb\*.xml,pack200\*.xml,portlib\*.xml,prefs\*.xml,print\*.xml,regex\*.xml,rmi\*.xml,security\*.xml,security-kernel\*.xml,sound\*.xml,sql\*.xml,suncompat\*.xml,swing\*.xml,text\*.xml,x-net\*.xml svn-info: compile-tests: [echo] Compiling accessibility api tests [javac] Compiling 11 source files to D:\project\harmony916432\working_classlib\modules\accessibility\bin\test [javac] Since fork is false, ignoring memoryMaximumSize setting [javac] ---------- [javac] 1. ERROR in D:\project\harmony916432\working_classlib\modules\accessibility\src\test\api\java\common\javax\accessibility\AccessibleAttributeSequenceTest.java [javac] (at line 20) [javac] import junit.framework.TestCase; [javac] ^^^^^ [javac] The import junit cannot be resolved [javac] ---------- [javac] 2. ERROR in D:\project\harmony916432\working_classlib\modules\accessibility\src\test\api\java\common\javax\accessibility\AccessibleAttributeSequenceTest.java [javac] (at line 23) [javac] public class AccessibleAttributeSequenceTest extends TestCase { [javac] ^^^^^^^^ [javac] TestCase cannot be resolved to a type [javac] ---------- I am sure that junit-4.6.jar have been downloaded to the folder "../working_classlib/depends/jars/junit_4.6", so the import junit cannot be resolved puzzled me. Does anybody meet this problem,your reply will be appreciated!
I copy the junit jar into my <ANT_HOME>/lib directory so it is automatically picked up by Ant - I think that should resolve these problems.
Regards, Oliver
2010-04-27 Li QuanLong
-- Oliver Deakin Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
