JythonFaq

Legacy Wiki Page

This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.

Jython Frequently Asked Questions


  • JythonFaq/GeneralInfo

    • What is Jython?

    • What is JPython

    • Is Jython the same language as Python?

    • What is the current status of Jython?

    • How fast is Jython?

    • Where do I learn more about Jython


  • JythonFaq/InstallingJython

    • Why do I get NoClassDefFoundError when running the installer

    • Why can’t I use “from java import …” on Windows?”

    • What is “python.path” and “python.prepath” mean in the Jython registry

    • Why no command-line history in Jython?

    • Why do I get the error, “can’t create package cache dir, ‘/cachedir/packages’”

    • Where’s the registry file

    • GUI-less installer?

    • Jython cannot find your Java class, even though it exists in the class path.


  • JythonFaq/ProgrammingJython

    • Why can’t I multiply inherit from two Java classes?

    • Why does dir(someJavaObject) return the empty list?

    • I’m trying to execute a ‘protected’ or ‘private’ Java Instance Method or attribute in a Java package. How can I get access?

    • Can I reload a java class as is possible for python modules?

    • How can I access Java protected (static) members from a Jython subclass?

    • How can I use a Java null value in Jython?

    • Where’s the -O switch

    • When I write to a file, it’s empty. Why?

    • The Jython’s os module is missing some functions, why?

    • How can I manipulate a java.util.Date object in Jython?

    • The future of jythonc with Jython v2.2b2 or greater


  • JythonFaq/JythonModules

    • What parts of the Python library are supported?

    • Can I use the python DB API from Jython?

    • Can I use the Numeric package from Jython?


  • JythonFaq/ExtendingJython

    • Java classes that emulate Jython Dictionaries and Sequences

    • Emulating Jython object attribute access with a Java class

    • Supporting *args and **kw in Java methods


  • JythonFaq/EmbeddingJython

    • How can I use jython classes from my java application?

    • My modules can not be found when imported from an embedded application