See All Titles |
![]() ![]() Java IntegrationIf you want to use the Python language and Java integration, you can find in JPython a compatible and complementary couple for Java. Because JPython's interpreter is written in Java itself, you might think why you shouldn't go directly to the point, and use pure Java instead of using JPython. My advice is to go for JPython first because soon you will see how simple it is to do a lot of tasks using JPython's facilities (such as running a piece of Java code without the need for defining a single class). JPython has all the teaching principles on its background, which makes it a language of easy learning. The full object-oriented programming model provided by the Python language (since its inception) brings power and clearness to the programmer world. This transparency when handling objects makes Python a natural choice for interoperating with Java's object-oriented design, and to be Java's scripting language. Other languages try, even though they were not created to be OO. Object-oriented programming became part of Perl programmer's life in version 5, and Tcl developers can only use OO through an extension called (itcl). It could be argued that Python evolved from the non-object oriented ABC the same way that Perl 5 evolved from Perl 4 and incr tcl from tcl, but Python had its evolutionary process carefully driven—almost a totally new development effort. Of course, other scripting languages can be used along with Java and its JVM, but none of them beat JPython in portability and performance, mainly for two reasons: JPython's 100% Java certification, and JPython's capability to translate Python source code directly into optimized Java bytecodes, respectively. Both Perl and Tcl offer scripting solutions, but none of the solutions offer a more significant value than the JPython solution.
Of course, in both of these cases, it is probably easier to port the Tcl or Perl runtimes than to port the java virtual machine. For more details about the Java language, you can check out http://www.javasoft.com/. Java CertificationOn July 13, 1998, it was announced that KeyLabs had completed testing JPython to certify that it is 100% pure Java.
Even though JPython has got this certification, you cannot use the 100% Java brand for your own JPython programs. You need to make sure that your product passes the 100% Pure Java certification tests in order to have the rights to use the exclusive 100% Pure Java logo on your packing. For details about this process, read the Certification Guide located at http://www.javasoft.com/100percent/ Java LinksIf you want to use JPython, but you don't know Java yet, or need a quick review, check out the following Java Web sites:
|
Index terms contained in this sectionintegratingJava JPython 2nd Java integrating JPython 2nd JPython integrating Java 2nd KeyLabs programming languages JPython integrating Java 2nd |
© 2002, O'Reilly & Associates, Inc. |