Jython where should I put my .py files

I am really new to Java / Eclipse and I am trying to do this Jython tutorial .

I do not understand where I should put my python files in the directory structure of the IDE tree. I tried to place the file in several places without success (I have to skip something). This is the error message I get:

<module 'sys' (built-in)>
Exception in thread "main" Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named Employee

My tree directory structure for this tutorial is as follows:

JythonTest
---src
------jyinterface
---------factory
------------EmployeeFactory.java
------------Employee.py
---------interfaces
------------EmployeeType.java
------------Employee.py
---------Main.java
---------Employee.py
---Employee.py
---lib
------jython-2.5.2.jar
------Employee.py 

EDIT . Therefore, I partially answer myself, because in the first part I found this link with explanations of the same situation, and it works!


, python, - ? , - :

PySystemState sys = Py.getSystemState();
sys.path.append(new PyString("isItHereThatIShouldPointToJython-2.5.2.jar???"));

- ?

.

+3
2

: "main" Traceback ( ):    "", 1, ImportError: Employee C:\Users\A\AppData\Local\NetBeans\Cache\8.1\executor-snippets\run.xml: 53: Java : 1 BUILD FAILED ( : 2 )

, . - CMD .

 https://wiki.python.org/jython/JythonMonthly/Articles/October2006/3
Employee.py jyinterface.interfaces src. ( Netbeans py)
0

Eclipse, PyDev. Jython , .py .

-1

All Articles