harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Pavlenko" <andrey.a.pavle...@googlemail.com>
Subject Re: [harmony-demo-1] Unit test on AWT
Date Fri, 25 Apr 2008 06:22:40 GMT
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 <mccloud35@gmail.com> 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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message