Questions tagged [jython]

Jython is an open-source implementation of the Python programming language in Java. Use this tag for questions specific to this implementation, general Python questions should just be tagged with "python".

Jython is an open-source implementation of the Python programming language written in Java. It is seamlessly integrated with Java, in that it can import and use any Java class. Jython is extensively used as a official scripting language for all WebLogic Server administration tasks.

Jython is also used for administrative scripting for IBM's WebSphere Application Server through the Wsadmin client.

Helpful References

2784 questions
10
votes
2 answers

Howto multithreaded jython scripts running from java?

I'm constructing a framework in Java that will listen for events and then process them in Jython. Different event types will be sent to different scripts. Since jython takes quite some time to compile the script when PythonInterpreter.exec() is…
nEJC
  • 545
  • 7
  • 11
10
votes
2 answers

Java 7 fails to collect permanent generation which is collected by java 5

Does anybody know why java 7 fails to collect permanent generation of app, resulting in java.lang.OutOfMemoryError: PermGen, while java 5 collects the permanent generation and app runs well? App does evaluation of jython expressions in the loop, one…
user555945
10
votes
4 answers

Intercept slice operations in Python

I want to imitate a normal python list, except whenever elements are added or removed via slicing, I want to 'save' the list. Is this possible? This was my attempt but it will never print 'saving'. class InterceptedList(list): def…
erik
  • 6,406
  • 3
  • 36
  • 36
10
votes
1 answer

PyCharm and integrating with Java

This question is probably ridiculous, because i have very small experience with python. But have to work with that these days. Problem is that IDE cannot resolve any reference to java.* packages and to others in my own libraries. I did add some…
VirtualVoid
  • 1,005
  • 3
  • 17
  • 25
9
votes
1 answer

What's the best way to deploy a Flask app using Jython on Tomcat?

I successfully deployed the demo web app that comes with Jython. It uses modjy which is a Jython WSGI gateway. I'm now trying to hook modjy to my Flask app. I get a handler not defined error. The full traceback is here: http://pastie.org/2810227
Julian Bonilla
  • 243
  • 3
  • 8
9
votes
2 answers

Jython won't import user-defined class; ImportError: No module named ******

I've been banging my head against the wall for a couple days now trying to figure this out. I've been starting to play around with Jython for fast prototyping. I've hit what appears to be an incredibly basic problem but I just can't seem to get past…
CompEcon
  • 1,994
  • 1
  • 14
  • 12
9
votes
2 answers

python GUI compared to Swing?

I wanted to say "best python GUI compared to Swing"... but was sternly told my question was "too subjective". I apologise to the deterministic ghost in the machine. I'm currently using Jython... have been using it for maybe 6 months now following…
mike rodent
  • 14,126
  • 11
  • 103
  • 157
9
votes
3 answers

Why are my jython "*$py.class" files not being updated with code changes after I moved them to a different package?

I originally had all of my modules in one package. I recently created a sub-package in the original package, and moved a few modules into that. My src folder, and the 2 package folders, are all in my PYTHONPATH. Since I relocated those modules,…
Cam Jackson
  • 11,860
  • 8
  • 45
  • 78
9
votes
8 answers

CPython vs. Jython vs. IronPython for cross-platform GUI development

I'm thinking of making some kind of experimental IDE for digital hardware design. So I can't decide witch platform to choose. I'm going to have text-editor with syntax highlighting, some vector graphics and lots of tabbed windows. My goals: 1. to…
Vladimir Keleshev
  • 13,753
  • 17
  • 64
  • 93
9
votes
1 answer

How to setup numpy in jython

There is a project called JyNI that allows you to run NumPy in Jython. However I haven't come across anywhere on how to get NumPy into Jython. I've tried 'pip install numpy' (which will work for normal python 3.4.3) but gives an error about a…
user1584120
  • 1,169
  • 2
  • 23
  • 44
8
votes
2 answers

Invoking Jython from Python (or Vice Versa)

I'm working on a framework right now, part of which requires Jython. I just added some plotting to it using MatPlotLib, without realizing that MatPlotLib is incompatible with Jython. Since these two parts are pretty isolated, and I would be fine…
Eli
  • 36,793
  • 40
  • 144
  • 207
8
votes
4 answers

How do I determine if an application is running using wsadmin Jython script?

I can get a list of instlled applications but how do I get the status using Jython?
blank
  • 17,852
  • 20
  • 105
  • 159
8
votes
2 answers

How do I set the Environment variables for Jython?

I have set the variables JYTHON_HOME to the directory where I have installed Jython and JYTHON_PATH to the bin folder, but I still get the following error when I try to run jython: 'jython' is not recognized as an internal or external…
Bharath Gupta
  • 344
  • 3
  • 8
  • 20
8
votes
6 answers

Learning Java so I can get at clojure

I have a history of hating Java, having used it pretty regularly in the late 90's during the 'slow as balls' era. As such, I never really learned it well. From what I understand, Java is actually a pretty good language to use these days. I've been…
Scott
  • 97
  • 4
8
votes
3 answers

Can I extend Jenkins with Jython/Python

Is it possible to write Jenkins plugins using Python (via Jython), and if so, where would I get started? I don't know Java (and don't have a real interest in learning it at the moment) so being able to use Python would be nice for me.
ojii
  • 4,729
  • 2
  • 23
  • 34