473,320 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Learning Jython?

Hi, all. I'm in a situation where I need to be writing a bunch of
quick-y (hopefully) self-contained programs that anyone can run from a
web page. Java applets are the obvious way to do this. However, I
don't know much Java, and, frankly, right now I don't feel much like
learning it. I *am* pretty good at Python, however.

It looks like Jython is for me. That said, I have two questions:

(1) Am I thinking straight here? Or is there some other solution that
a knows-Python-but-not-Java programmer might use?

(2) Assuming that I'm going with Jython, it looks like I'm not going
to be able to come up with any kind of GUI without learning the Java
libraries. Can someone point me to a tutorial for Everything I've
found are like, "You know the Java libraries forwards and backwards;
now learn to call them in Python." That's not what I need.

-- Matt

Jul 26 '07 #1
2 1306
Matt Bitten <mb*******@yahoo.comwrites:
It looks like Jython is for me. That said, I have two questions:
(1) Am I thinking straight here? Or is there some other solution that
a knows-Python-but-not-Java programmer might use?
You are thinking of embedding Jython in a web applet? Probably not
such a great idea, due to its size.
Jul 26 '07 #2

Paul Rubin wrote:
Matt Bitten <mb*******@yahoo.comwrites:
It looks like Jython is for me. That said, I have two questions:
(1) Am I thinking straight here? Or is there some other solution that
a knows-Python-but-not-Java programmer might use?
You could convert to the whole world to using the Grail (http://
grail.sourceforge.net), which can run Python applets, but Java applets
with Jython are probably the second best option. The java.awt.Applet
class isn't that bad. For simple applets, it's probably the only one
you'll need. After all, Jython makes Java classes look like Python.
Good Luck!
>
You are thinking of embedding Jython in a web applet? Probably not
such a great idea, due to its size.
Ah, but Jython compiles Python to Java bytecode so browsers will run
it. However, it is true, that you'd have to include all of the
standard library modules you used.

Jul 27 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Ron Stephens | last post by:
The newly rechristened Python Learning Foundation is a web site dedicated to the assistance of people learning the Python programming language. Features include: 1. Daily lists of new and recent...
6
by: Dave Benjamin | last post by:
Hey good people, I've been doing a lot of simultaneous Jython and CPython programming lately, and just wanted to say, with no intended ill will toward any of the individuals who have been...
4
by: Ray | last post by:
I want to jump in a learn Python. I have spent about a day looking at editors and IDEs and (probably prematurely) selected jEdit to work in. I have downloaded Python and jEdit. I have been going...
4
by: angel | last post by:
A java runtime environment includes jvm and java class (for example classes.zip in sun jre). Of course jython need jvm,but does it need java class. Thanx
1
by: scott | last post by:
I installed darwinports and did a "sudo port install jython" ------------------------- scott$ which jython /opt/local/bin/jython ------------------------- Jython works in interactive...
12
by: Mark Fink | last post by:
I wrote a Jython class that inherits from a Java class and (thats the plan) overrides one method. Everything should stay the same. If I run this nothing happens whereas if I run the Java class it...
3
by: Sloan.Kohler | last post by:
Is Jython development dead or has it just seemed that way for over a year?. The jython.org website has a recent new appearance (but no new content) and there is some message traffic on the...
4
by: Neil Wallace | last post by:
Hi all, I am a novice Python/Jython programmer, and Ubuntu user. Ubuntu still only supports only version 2.1 of Jython. I have used the GUI installer of Jython 2.2, and installed it to the...
5
by: sarup26 | last post by:
Hello .. I would like to know more about Python and Jython? What is the difference between both of them? What is the future for Jython and which are the areas where it is used? Swot
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.