Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 paths to the necessary libraries in interpeter but nothing changed.

Does i did something wrong or do i need any third-party plugin?

I am using PyCharm 2.5b with Jython 2.5.3 as interpreter.

like image 799
VirtualVoid Avatar asked Apr 08 '12 01:04

VirtualVoid


1 Answers

PyCharm Java support is very limited, it cannot parse jars and understand Java imports right now.

If you want to develop with Java and Python at the same time, consider using IntelliJ IDEA Ultimate with Python plug-in.

Adding jre/lib/rt.jar to the Jython classpath will get the imports resolved and code completion available:

rt.jar

completion

Note that you will need to disable Trying to call a non-callable object inspection because of the known bug.

like image 176
CrazyCoder Avatar answered Sep 24 '22 06:09

CrazyCoder