harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov" <alexey.v.varla...@gmail.com>
Subject Re: some question about drlvm
Date Wed, 26 Jul 2006 10:11:00 GMT
>From the information you've provided it is hard to deduce the reason of failure.
Could you please apply this diff to drlvm and try it again, then post a result?

Index: vm/vmcore/src/kernel_classes/javasrc/java/lang/ClassLoader.java
============================================================
--- vm/vmcore/src/kernel_classes/javasrc/java/lang/ClassLoader.java
 (revision 425602)
+++ vm/vmcore/src/kernel_classes/javasrc/java/lang/ClassLoader.java
 (working copy)
@@ -394,7 +394,7 @@
         if (name != null) {
             if (name.startsWith("java.")) {
                 throw new SecurityException(
-                    "It is not allowed to define classes inside the
java.* package");
+                    "It is not allowed to define classes inside the
java.* package: " + name);
             }
             int lastDot = name.lastIndexOf('.');
             packageName = lastDot == -1 ? "" : name.substring(0, lastDot);

--
Alexey

2006/7/26, zouqiong <ustczz@gmail.com>:
> I hava solved the problem i submitted in the morning.
> Now i am using the drlvm to build a java application, called yong zhong
> office,
> i run the application as follows:
> ij -jar EIOffice.jar
>
> however, the erros comes as:
> java.lang.SecurityException: It is not allowed to define classes inside the
> java.* package
>        at java.lang.ClassLoader.defineClass()
>        at java.security.SecureClassLoader.defineClass()
>        at java.net.URLClassLoader.findClassImpl()
>        at java.net.URLClassLoader$4.run()
>        at java.security.AccessController.doPrivilegedImpl()
>        at java.security.AccessController.doPrivileged()
>        at java.net.URLClassLoader.findClass()
>        at java.lang.ClassLoader.loadClass()
>        at java.net.URLClassLoader$SubURLClassLoader.loadClass()
>        at java.lang.ClassLoader.loadClass()
>        at java.lang.VMClassRegistry.defineClass()
>        at java.lang.ClassLoader.defineClass()
>        at java.security.SecureClassLoader.defineClass()
>        at java.net.URLClassLoader.findClassImpl()
>        at java.net.URLClassLoader$4.run()
>        at java.security.AccessController.doPrivilegedImpl()
>        at java.security.AccessController.doPrivileged()
>        at java.net.URLClassLoader.findClass()
>        at java.lang.ClassLoader.loadClass()
>        at java.net.URLClassLoader$SubURLClassLoader.loadClass()
>        at java.lang.ClassLoader.loadClass()
>        at java.lang.VMClassRegistry.defineClass()
>        at java.lang.ClassLoader.defineClass()
>        at java.security.SecureClassLoader.defineClass()
>        at java.net.URLClassLoader.findClassImpl()
>        at java.net.URLClassLoader$4.run()
>        at java.security.AccessController.doPrivilegedImpl()
>        at java.security.AccessController.doPrivileged()
>        at java.net.URLClassLoader.findClass()
>        at java.lang.ClassLoader.loadClass()
>        at java.net.URLClassLoader$SubURLClassLoader.loadClass()
>        at java.lang.ClassLoader.loadClass()
>        at java.lang.VMClassRegistry.defineClass()
>        at java.lang.ClassLoader.defineClass()
>        at java.security.SecureClassLoader.defineClass()
>        at java.net.URLClassLoader.findClassImpl()
>        at java.net.URLClassLoader$4.run()
>        at java.security.AccessController.doPrivilegedImpl()
>        at java.security.AccessController.doPrivileged()
>        at java.net.URLClassLoader.findClass()
>        at java.lang.ClassLoader.loadClass()
>        at java.net.URLClassLoader$SubURLClassLoader.loadClass()
>
> what`s the reason for it? Thanks
>
>

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message