Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 1901 invoked from network); 26 Apr 2008 07:28:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Apr 2008 07:28:13 -0000 Received: (qmail 16487 invoked by uid 500); 26 Apr 2008 07:28:09 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 16429 invoked by uid 500); 26 Apr 2008 07:28:09 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 16418 invoked by uid 99); 26 Apr 2008 07:28:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Apr 2008 00:28:09 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alexei.fedotov@gmail.com designates 209.85.200.169 as permitted sender) Received: from [209.85.200.169] (HELO wf-out-1314.google.com) (209.85.200.169) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Apr 2008 07:27:24 +0000 Received: by wf-out-1314.google.com with SMTP id 29so3324042wff.24 for ; Sat, 26 Apr 2008 00:27:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=L6nZlLp/nSqRWXI+Y/iOPp5sz57uGpQaJ+4M7AIc6RU=; b=S5vo+D8O/l2g+2vjJtVLc+7eas4GsIaK3ox0Jhs6wKukjeb2ikJYKh7OUk+aR7BE6bANuRuCMY4/TxGbeYNB6OFY5yhDfq5zYV+NC0S8otL1pxi50d8m3Xh6W9KCMy8cHvFJyBJFZYSTq6p4hSK2gY/0VhX3grIgcAP+UgUqdsc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=r7TtrM0L1/jMqBUhf4ICSGjnrlrI1X7xXxuw9KmPwFK4WAwq1iyu/4YK8V8v9mCUygGeFweoNcRdr9mZNtwaDDSlIVF7YCttczS0funEmTyuNPTIcOau/CgjWCWYCI7BH2GSR+clH6CzF7+NAwt1bo0evAXoZluQdHt1z8NeQug= Received: by 10.142.71.3 with SMTP id t3mr1198545wfa.244.1209194858679; Sat, 26 Apr 2008 00:27:38 -0700 (PDT) Received: by 10.142.155.15 with HTTP; Sat, 26 Apr 2008 00:27:38 -0700 (PDT) Message-ID: Date: Sat, 26 Apr 2008 11:27:38 +0400 From: "Alexei Fedotov" To: dev@harmony.apache.org Subject: Re: [harmony-demo-1] Unit test on AWT In-Reply-To: <61d2e9b20804260024l7270387brecb980ec7f37a367@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <61d2e9b20804242305oe1e54b0u14bc81b99ec17195@mail.gmail.com> <61d2e9b20804260024l7270387brecb980ec7f37a367@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Tharindu, Have you added kernel.jar to the project classpath? Have you added the project classpath to the boot classpath in the launch dialog? Thanks! On Sat, Apr 26, 2008 at 11:24 AM, Mackie Mathew wrote: > I added the awt project under bootstrap entries in the run dialog. Now both > Sun JDK and Harmony give the following exception: > > Error occurred during initialization of VM > > java/lang/NoClassDefFoundError: java/lang/Object > > > > On Fri, Apr 25, 2008 at 11:52 AM, Andrey Pavlenko < > andrey.a.pavlenko@googlemail.com> wrote: > > > You should add the tests to the boot class path in the Eclipse Run dialog. > > > > On Fri, Apr 25, 2008 at 10:05 AM, Mackie Mathew > > wrote: > > > > > I'm trying to run the the tests on AWT. When I use the Sun JDK it gives > > a > > > security violation, due to the awt package name being used. > > > > > > java.lang.SecurityException: Prohibited package name: java.awt > > > at java.lang.ClassLoader.preDefineClass(ClassLoader.java:479) > > > at java.lang.ClassLoader.defineClass(ClassLoader.java:614) > > > at > > > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > > > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > > > at java.net.URLClassLoader.access$100(URLClassLoader.java:56) > > > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > > > at java.security.AccessController.doPrivileged(Native Method) > > > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > > > at > > > > > > > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClass(RemoteTestRunner.java:683) > > > at > > > > > > > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClasses(RemoteTestRunner.java:425) > > > at > > > > > > > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445) > > > at > > > > > > > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) > > > at > > > > > > > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) > > > at > > > > > > > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) > > > > > > When Harmony is used as the JDK, the following error occurs: > > > > > > java/lang/NoClassDefFoundError : java/lang/Object > > > > > > > > > How can these tests be run? Im using Eclipse as the IDE to run the > > tests. > > > > > > -- > > > Regards, > > > > > > Tharindu > > > > > > > > > -- > Regards, > > Tharindu > -- With best regards, Alexei