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 < [EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> > 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
