Message3
In MS appletviewer, the java load scheme attempts to load the "java" name from sys.path (if the j[p]ython.jar is on CLASSPATH when starting appletviewer). A solution could be to use the Py.frozen flag to avoid filesystem searches.
from java.applet import Applet
class test256a(Applet):
def __init__(self):
pass
jpythonc --core --jar test256.jar test256a.py
<applet code="test256a" archive="test256.jar" width=300 height=200></applet>
com.ms.security.SecurityExceptionEx[test256a$_PyInner.main$3]: cannot access file i:\java\Jython.pack\Lib\java
at com/ms/security/permissions/FileIOPermission.check
at com/ms/security/PolicyEngine.deepCheck
at com/ms/security/PolicyEngine.checkPermission
at com/ms/security/StandardSecurityManager.chk
at com/ms/security/StandardSecurityManager.checkRead
at java/io/File.isDirectory
at org/python/core/imp.loadFromPath
at org/python/core/imp.loadFromPath
at org/python/core/imp.load
at org/python/core/imp.load
at org/python/core/imp.importName
at org/python/core/imp.importName
at org/python/core/ImportFunction.load
at org/python/core/ImportFunction.__call__
at org/python/core/PyObject.__call__
at org/python/core/imp.importFromAs
at test256a$_PyInner.main$3
at test256a$_PyInner.call_function
at org/python/core/PyTableCode.call
at org/python/core/imp.createFromCode
at org/python/core/Py.initProxy
at test256a.<init>
at java/lang/Class.newInstance
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
|
|
Date |
User |
Action |
Args |
2008-02-20 17:16:36 | admin | link | issue222610 messages |
2008-02-20 17:16:36 | admin | create | |
|