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
6
votes
2 answers

Automate PyDev Interpreter setup

I have a scenario where I want to be able automate the setting up of various Python interpreters for use in PyDev. These interpreters have special environment variables, forced built-ins and libraries defined. Is there a way through perhaps an…
Will
  • 61
  • 2
6
votes
1 answer

android python full integration

Is there a way to fully integrate Python with Java code on Android platform? Yes, I saw the question about running Python on Android and Android Scripting Environment (ASE). But that doesn't seem to be enough (correct me if I am wrong). I wanted to…
Grzegorz Oledzki
  • 23,614
  • 16
  • 68
  • 106
6
votes
3 answers

Should I use Jython, JRuby, Beanshell, Groovy, Rhino, or what for this small task?

I have some batch data-manipulation scripts which support a small business website. The scripts are a "rat's nest" of Perl, Java, and Stored Procedures, which run on a scheduled basis to update data based on various sources and algorithms. I want to…
Alex R
  • 11,364
  • 15
  • 100
  • 180
6
votes
1 answer

Combine JavaFX with Python

I was wondering if it is possible to design a GUI using JavaFX and afterwards combining with some Python code (for example make a button using JavaFX and then write handler code in Python to give some functionality). JavaFX is great to design a…
ldg
  • 450
  • 3
  • 7
  • 27
6
votes
8 answers

How to speed up this Python code?

I've got the following tiny Python method that is by far the performance hotspot (according to my profiler, >95% of execution time is spent here) in a much larger program: def topScore(self, seq): ret = -1e9999 logProbs = self.logProbs #…
dsimcha
  • 67,514
  • 53
  • 213
  • 334
6
votes
2 answers

Pig: is it possible to use pytz or dateutils for Python udfs?

I am using datetime in some Python udfs that I use in my pig script. So far so good. I use pig 12.0 on Cloudera 5.5 However, I also need to use the pytz or dateutil packages as well and they dont seem to be part of a vanilla python install. Can I…
ℕʘʘḆḽḘ
  • 18,566
  • 34
  • 128
  • 235
6
votes
1 answer

sqlite3 module for Jython

I'm using Java Scripting API to execute some external Python scripts from my Java application. The python scripts use sqlite3 module. Execution of the application is resulting in error ImportError: No module named sqlite3 As I look into the Lib…
kaychaks
  • 1,715
  • 3
  • 21
  • 28
6
votes
5 answers

Real-world Jython applications

I recently started learning Python. Not yet ventured into coding. During one of my learning sessions, i came accross the term Jython. I googled it & got some information. I would like to know if anyone has implemented any real-world program using…
ykombinator
  • 2,724
  • 7
  • 25
  • 46
6
votes
6 answers

Which cross platform scripting language should we adopt for a group of DBAs?

I wanted to get the community's feedback on a language choice our team is looking to make in the near future. We are a software developer, and I work in a team of Oracle and SQL Server DBAs supporting a cross platform Java application which runs on…
Chris Gilbert
  • 1
  • 1
  • 2
  • 6
6
votes
1 answer

Jython - Class Cast Exception with PyObject

I am trying to create and cast an object in Jython and I am receiving the following error: Exception in thread "MainThread" java.lang.ClassCastException: org.python.core.PySingleton cannot be cast to resources.ixia.IxNetType at…
billg118
  • 561
  • 1
  • 5
  • 13
6
votes
2 answers

Python requires a GIL. But Jython & IronPython don't. Why?

Why is it that you can run Jython and IronPython without the need for a GIL but Python (CPython) requires a GIL?
JamesD
  • 77
  • 1
  • 3
6
votes
3 answers

Passing java object to python

I am prototyping an interface to our application to allow other people to use python, our application is written in java. I would like to pass some of our data from the java app to the python code but I am unsure how to pass an object to python. I…
user1584120
  • 1,169
  • 2
  • 23
  • 44
6
votes
2 answers

What's the difference between jython-standalone-2.7.0.jar and jython-2.7.0.jar

I wrote a Java example, the code is: import org.python.core.PyObject; import org.python.util.PythonInterpreter; import javax.script.ScriptEngine; import javax.script.ScriptEngineFactory; import javax.script.ScriptEngineManager; import…
soulmachine
  • 3,917
  • 4
  • 46
  • 56
6
votes
4 answers

How to connect ImageJ to python?

I am using Python to design a software, and the image processing is one of the steps. I am using ImageJ to realize this. Since there is a Jython interpreter within ImageJ, which can be opened within ImageJ software, there must be a way to connect…
Jarvis Du
  • 379
  • 1
  • 4
  • 15