jQuery in Action, 3rd edition
The moose likes Jython/Python and the fly likes java or javascript or jython Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Jython/Python
Bookmark "java or javascript or jython" Watch "java or javascript or jython" New topic

java or javascript or jython

MR Thakkar

Joined: May 13, 2002
Posts: 6
i am java programmer and dont know anything about jython.is it something like javascript used in webbrowser or is it something like jsp.
what are its use and advantage?
thanks in advance.

Peter den Haan
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
I would not compare it to JavaScript -- if anything, compare it to Perl or PHP, if you are familiar with these languages. Or indeed Java itself, be it that the language is somewhat higher level and less rigid.
Another similarity with Java is that you can compile Jython down to bytecode. Jython classes can extend Java classes and vice versa (with a few limitations). It is a real, full-blown programming language unlike JSPs which are just a fancy way to write Java servlets.
So why Jython, then? Well, for example, you may want to add scriptability to your application. Jython as a high level language is ideal to glue together the larger building blocks written in Java. In case you're wondering whether this is useful, consider Microsoft Office (VBA), or Emacs (elisp), most databases... all these become much more powerful by having an embedded scripting language.
- Peter
I agree. Here's the link: http://aspose.com/file-tools
subject: java or javascript or jython
It's not a secret anymore!