Hi all, I'm trying to make Jython work on my Symbian device (SonyEricsson
My problem is that the base classes package has an extension .zip instead of
.jar so Jython ends up throwing an exception because it can't find the java
I found a workaround in the emulator renaming the file but, on the physical
device, this file stands in a read-only partition. It seems also that the VM
doesn't support bootclasspath redirection.
I think the problem can be overridden modifying the
org.python.core.CachedJarsPackageManager class that does not reckognise .zip
files as valid packages: the log reports that method addJarToPackages(...)
skips the classes.zip file.
Does anybody have suggestions?
I found a workaround for the problem of including classes.zip in the files
Jython parses (modifying a little the loader).
But then I've got another problem. It seems that Symbian doesn't implement
standard Java classes (e.g. java.lang and java.awt packages) the usual way
inside a jar/zip file. I wasn't able to find them anywhere so I now must
think the the Symbian JVM implementation provides them in some other way.
So Jython interpreter cannot parse them on startup and comes up with a
package not found in the import statement.
I did try to precompile the classes but then I get a null pointer exception
at org.pyhon.core.PyJavaClass.setBeanInfoCustom() and I think it depends on
the use of the getClassLoader() method that returns a null value.
Again, does anybody have some experience in using Jython on Symbian?