Python Forum
Jython code throws ImportError when invoked from a Java jar
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Jython code throws ImportError when invoked from a Java jar
#6
I was mistaken - I hadn't looked at Jython in a few years, and I thought development ceased quite a while ago, but looking into it, that's not true at all. Weird that when I ran your code, it choked on argparse but had gotten past sys successfully. That said, I'm at a loss.

(Aug-01-2018, 05:26 PM)dchucks Wrote: When I use Jython JAR in my application does the target system need to have Python installed?
I'm pretty confident not, since it's a whole separate Python implementation.

Beyond this, I'd suggest you try to look into something Jython specific. Since Jython appears to be in active development now there should be some community you can get help from (even if it's just the devs), but unless someone else here wants to really dive in, I don't think we're going to be very helpful.
Reply


Messages In This Thread
RE: Jython code throws ImportError when invoked from a Java jar - by micseydel - Aug-01-2018, 06:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pymysql: insert query throws error wardancer84 12 4,747 Jan-28-2022, 06:48 AM
Last Post: wardancer84
  issue with Tabula-py, pyinstaller and java maurom82 2 3,249 Feb-19-2021, 04:32 PM
Last Post: buran
  pyarrow throws oserror winerror 193 1 is not a valid win32 application aupres 2 3,852 Oct-21-2020, 01:04 AM
Last Post: aupres
  Function throws error but then works? Milfredo 10 3,906 Sep-12-2020, 05:16 AM
Last Post: Milfredo
  python/winrt Bluetooth.GenericAttributProfile CreateAsync(GUID) method throws Not Imp pbvinoth 0 2,168 Jul-08-2020, 04:27 AM
Last Post: pbvinoth
  Jython macro which uses PythonInterpreter and Redis script gives an error rkanumola 2 2,302 Oct-30-2019, 07:37 AM
Last Post: rkanumola
  How to run python code in Java using remote SSH without py file using streams in Java varanasipavankumar 0 2,568 Apr-07-2019, 06:13 PM
Last Post: varanasipavankumar
  running python script from shell invoked with os.system("x-terminal-emulator -e /bin/ markhaus 2 3,143 Feb-21-2019, 11:55 PM
Last Post: markhaus
  Can't find error in code but Python throws exception Sandwich_masterX 3 3,008 Oct-09-2018, 01:38 AM
Last Post: ichabod801
  phython language java integration jammytcs123123 1 2,331 Jul-04-2018, 03:13 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020