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
1
vote
3 answers

Rank within Groups in Pig 11

Pig question, I have my data setup the following way. Function Group Home Name Rent MX 1 John Rent MX 1 Jake Rent MX 1 Pat Rent DG 2 Jason Rent DG 6 Patrick Rent DG 6 Smith Rent DG 6 Joe What I want…
JohnMeek
  • 69
  • 1
  • 2
  • 6
1
vote
0 answers

Use IronPython and Jython as API Tester

We have a server which exposes a set of REST APIs. Those APIs are meant to be exposed for clients on different platform so we want to provide SDKs in Java and .NET The SDKs are using similiar interface definitions (we keep duplicating interface…
Jay Zhu
  • 1,636
  • 13
  • 17
1
vote
2 answers

Is it possible to install Robot Framework without installing Python on Windows?

I have Java 1.6. And I have installed Jython on Windows by following the steps below: Download "jython-installer-2.7-b1.jar" Open command prompt --> Go to the location/folder where jython-installer-2.7-b1.jar is kept Execute the command java -jar…
Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176
1
vote
2 answers

Jython SyntaxError (from Java app)

In my Java app I want to use Jython to interpret Python code. So I initialise Jython as follows: PySystemState.initialize(); PythonInterpreter jython = new PythonInterpreter(); Then I want to test it like this: jython.eval("out =…
Matthias
  • 9,817
  • 14
  • 66
  • 125
1
vote
0 answers

Embedable Java-based HTTP server with (PHP) scripting support

For my Java project I need to embed a web server to provide various web pages to the user. Until now we used the "official" com.sun.net.httpserver.HttpServer class, which basically works fine. However, now we want to extend our application in order…
Matthias
  • 9,817
  • 14
  • 66
  • 125
1
vote
3 answers

Template Lib (Engine) in Python running with Jython

Im searching a Template Lib or Template Engine for generating HTML (XML) that runs under Jython (Jython 2.5 Alpha is ok).
Blauohr
  • 5,985
  • 2
  • 25
  • 31
1
vote
1 answer

Python Error: Able to run the program from command line but not from IDE

I am trying to use Charm Cryptography library. I have installed the library and I can see the eggs inside the Python/Lib/site-packages. When I run the below program using command line it does but when I try using Eclipse with PyDev plugin it gives…
Raunak Agarwal
  • 7,117
  • 6
  • 38
  • 62
1
vote
1 answer

Crop Function Jython JES

Hi im trying to make a crop function in Jython Environment For Students heres what i have so far. I am also trying to figure out how to make the canvas the size that all the new pixels will take up. Any help def crop(pic, startX, endX, startY,…
user2194374
  • 123
  • 3
  • 4
  • 9
1
vote
1 answer

Executing Jython script from java and get result

I am using IBM WebSphere server for my application. I am administrating it through command line using Java and Jython. I have written Jython script to get server configuration but how can I execute this script from Java swing application i.e. send…
Muhammad Imran Tariq
  • 22,654
  • 47
  • 125
  • 190
1
vote
2 answers

OpenRefine remove duplicates from list with jython

I have a column with values that are duplicated e.g. VMS5796,VMS5650,VMS5650,CSL,VMA5216,CSL,VMA5113 I'm applying a transform using jython that removes the duplicates (On error is set to keep original), here's the code: return…
Phil
  • 3,568
  • 3
  • 34
  • 40
1
vote
1 answer

How do I get my Jython script to synchronously invoke a Java method?

I have a Java library that uses Jython to allow users to add custom scripts to interact with particular parts of the library. Having Java give data to the scripts is easy, but let's say I want to follow this pattern in on of the Jython scripts: data…
cabbagebot
  • 386
  • 1
  • 12
1
vote
2 answers

Convert Jython scripts to .jar file

I have been trying to convert jython scripts to .jar file. I followed, Distributing my Python scripts as JAR files with Jython? The link above and also the Jython wiki link shown inside it use a command line script called, "zip". Its like => zip…
Chakradhar K
  • 501
  • 13
  • 40
1
vote
1 answer

Can python popen capture interactive output of a subprocess of a subprocess

We have an app named app.exe which in turn is a wrapper for a java.exe for the installanywhere launcher. Suppose we have a python script a.py which calls app.exe which then spawns the java.exe process, how do we capture the interactive outputs and…
chz
  • 355
  • 1
  • 7
  • 21
1
vote
5 answers

How do you use Jython for your Java development?

So you aren't allowed to use Jython for the production code you develop at work. You can, instead, use it to help you on your daily tasks and activities writing that Java code. The question is: How do you use Jython and how did that help your…
Andrei Vajna II
  • 4,642
  • 5
  • 35
  • 38
1
vote
3 answers

jython lambda function

May I know why the following code does not print out [1,2,3,1,2,3]. Instead, it throws an exception. Could you show me how to make it work. x = [1,2,3] print apply(lambda x: x * 2, (x)) if I try the following, it works: test1 = lambda x: x *…
Test Test
  • 31
  • 4